Add Python 3.7-dev to the default docker image.

pull/31305/head
Matt Clay 7 years ago
parent cf662ed74b
commit 677aca1cc7

@ -10,7 +10,10 @@ RUN apt-get update -y && \
curl \ curl \
gcc \ gcc \
git \ git \
libbz2-dev \
libffi-dev \ libffi-dev \
libreadline-dev \
libsqlite3-dev \
libxml2-dev \ libxml2-dev \
libxslt1-dev \ libxslt1-dev \
locales \ locales \
@ -25,6 +28,12 @@ RUN apt-get update -y && \
&& \ && \
apt-get clean apt-get clean
ADD https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer /tmp/pyenv-installer
RUN bash -c 'PYENV_ROOT=/usr/local/opt/pyenv bash /tmp/pyenv-installer'
RUN bash -c 'PYENV_ROOT=/usr/local/opt/pyenv /usr/local/opt/pyenv/bin/pyenv install 3.7-dev'
RUN ln -s /usr/local/opt/pyenv/versions/3.7-dev/bin/python3.7 /usr/local/bin/python3.7
RUN ln -s /usr/local/opt/pyenv/versions/3.7-dev/bin/pip3.7 /usr/local/bin/pip3.7
RUN rm /etc/apt/apt.conf.d/docker-clean RUN rm /etc/apt/apt.conf.d/docker-clean
RUN locale-gen en_US.UTF-8 RUN locale-gen en_US.UTF-8
VOLUME /sys/fs/cgroup /run/lock /run /tmp VOLUME /sys/fs/cgroup /run/lock /run /tmp

@ -5,6 +5,7 @@ python_versions=(
2.7 2.7
3.5 3.5
3.6 3.6
3.7
) )
requirements=() requirements=()

@ -509,6 +509,12 @@ class PathMapper(object):
} }
if path.startswith('test/runner/'): if path.startswith('test/runner/'):
if dirname == 'test/runner' and name in (
'Dockerfile',
'.dockerignore',
):
return minimal # not used by tests, only used to build the default container
return all_tests(self.args) # test infrastructure, run all tests return all_tests(self.args) # test infrastructure, run all tests
if path.startswith('test/utils/shippable/'): if path.startswith('test/utils/shippable/'):

Loading…
Cancel
Save