Add Python 3.7-dev to the default docker image.

This commit is contained in:
Matt Clay 2017-11-20 16:22:52 -08:00
parent cf662ed74b
commit 677aca1cc7
3 changed files with 16 additions and 0 deletions

View file

@ -10,7 +10,10 @@ RUN apt-get update -y && \
curl \
gcc \
git \
libbz2-dev \
libffi-dev \
libreadline-dev \
libsqlite3-dev \
libxml2-dev \
libxslt1-dev \
locales \
@ -25,6 +28,12 @@ RUN apt-get update -y && \
&& \
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 locale-gen en_US.UTF-8
VOLUME /sys/fs/cgroup /run/lock /run /tmp

View file

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

View file

@ -509,6 +509,12 @@ class PathMapper(object):
}
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
if path.startswith('test/utils/shippable/'):