Merge pull request #127 from jstewmon/tkinter
Install tk-dev and tcl-dev before building python
This commit is contained in:
commit
94652e72fc
|
@ -16,6 +16,15 @@ ENV PYTHON_VERSION 2.7.12
|
|||
ENV PYTHON_PIP_VERSION 8.1.2
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
' \
|
||||
&& runDeps=' \
|
||||
tcl \
|
||||
tk \
|
||||
' \
|
||||
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
|
@ -42,6 +51,7 @@ RUN set -ex \
|
|||
-o \
|
||||
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||
\) -exec rm -rf '{}' + \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /usr/src/python ~/.cache
|
||||
|
||||
# install "virtualenv", since the vast majority of users of this image will want it
|
||||
|
|
|
@ -35,6 +35,8 @@ RUN set -ex \
|
|||
pax-utils \
|
||||
readline-dev \
|
||||
sqlite-dev \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
zlib-dev \
|
||||
&& cd /usr/src/python \
|
||||
&& ./configure \
|
||||
|
|
|
@ -32,6 +32,8 @@ RUN set -ex \
|
|||
libsqlite3-dev \
|
||||
libssl-dev \
|
||||
make \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
xz-utils \
|
||||
zlib1g-dev \
|
||||
' \
|
||||
|
|
|
@ -16,6 +16,15 @@ ENV PYTHON_VERSION 2.7.12
|
|||
ENV PYTHON_PIP_VERSION 8.1.2
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
' \
|
||||
&& runDeps=' \
|
||||
tcl \
|
||||
tk \
|
||||
' \
|
||||
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
|
@ -42,6 +51,7 @@ RUN set -ex \
|
|||
-o \
|
||||
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||
\) -exec rm -rf '{}' + \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /usr/src/python ~/.cache
|
||||
|
||||
# install "virtualenv", since the vast majority of users of this image will want it
|
||||
|
|
|
@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.3.6
|
|||
ENV PYTHON_PIP_VERSION 8.1.2
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
' \
|
||||
&& runDeps=' \
|
||||
tcl \
|
||||
tk \
|
||||
' \
|
||||
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
|
@ -42,6 +51,7 @@ RUN set -ex \
|
|||
-o \
|
||||
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||
\) -exec rm -rf '{}' + \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /usr/src/python ~/.cache
|
||||
|
||||
# make some useful symlinks that are expected to exist
|
||||
|
|
|
@ -35,6 +35,8 @@ RUN set -ex \
|
|||
pax-utils \
|
||||
readline-dev \
|
||||
sqlite-dev \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
xz-dev \
|
||||
zlib-dev \
|
||||
&& cd /usr/src/python \
|
||||
|
|
|
@ -33,6 +33,8 @@ RUN set -ex \
|
|||
libsqlite3-dev \
|
||||
libssl-dev \
|
||||
make \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
xz-utils \
|
||||
zlib1g-dev \
|
||||
' \
|
||||
|
|
|
@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.3.6
|
|||
ENV PYTHON_PIP_VERSION 8.1.2
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
' \
|
||||
&& runDeps=' \
|
||||
tcl \
|
||||
tk \
|
||||
' \
|
||||
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
|
@ -42,6 +51,7 @@ RUN set -ex \
|
|||
-o \
|
||||
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||
\) -exec rm -rf '{}' + \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /usr/src/python ~/.cache
|
||||
|
||||
# make some useful symlinks that are expected to exist
|
||||
|
|
|
@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.4.5
|
|||
ENV PYTHON_PIP_VERSION 8.1.2
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
' \
|
||||
&& runDeps=' \
|
||||
tcl \
|
||||
tk \
|
||||
' \
|
||||
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
|
@ -41,6 +50,7 @@ RUN set -ex \
|
|||
-o \
|
||||
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||
\) -exec rm -rf '{}' + \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /usr/src/python ~/.cache
|
||||
|
||||
# make some useful symlinks that are expected to exist
|
||||
|
|
|
@ -36,6 +36,8 @@ RUN set -ex \
|
|||
pax-utils \
|
||||
readline-dev \
|
||||
sqlite-dev \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
xz-dev \
|
||||
zlib-dev \
|
||||
&& cd /usr/src/python \
|
||||
|
|
|
@ -33,6 +33,8 @@ RUN set -ex \
|
|||
libsqlite3-dev \
|
||||
libssl-dev \
|
||||
make \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
xz-utils \
|
||||
zlib1g-dev \
|
||||
' \
|
||||
|
|
|
@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.4.5
|
|||
ENV PYTHON_PIP_VERSION 8.1.2
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
' \
|
||||
&& runDeps=' \
|
||||
tcl \
|
||||
tk \
|
||||
' \
|
||||
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
|
@ -41,6 +50,7 @@ RUN set -ex \
|
|||
-o \
|
||||
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||
\) -exec rm -rf '{}' + \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /usr/src/python ~/.cache
|
||||
|
||||
# make some useful symlinks that are expected to exist
|
||||
|
|
|
@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.5.2
|
|||
ENV PYTHON_PIP_VERSION 8.1.2
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
' \
|
||||
&& runDeps=' \
|
||||
tcl \
|
||||
tk \
|
||||
' \
|
||||
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
|
@ -41,6 +50,7 @@ RUN set -ex \
|
|||
-o \
|
||||
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||
\) -exec rm -rf '{}' + \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /usr/src/python ~/.cache
|
||||
|
||||
# make some useful symlinks that are expected to exist
|
||||
|
|
|
@ -36,6 +36,8 @@ RUN set -ex \
|
|||
pax-utils \
|
||||
readline-dev \
|
||||
sqlite-dev \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
xz-dev \
|
||||
zlib-dev \
|
||||
&& cd /usr/src/python \
|
||||
|
|
|
@ -33,6 +33,8 @@ RUN set -ex \
|
|||
libsqlite3-dev \
|
||||
libssl-dev \
|
||||
make \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
xz-utils \
|
||||
zlib1g-dev \
|
||||
' \
|
||||
|
|
|
@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.6.0a2
|
|||
ENV PYTHON_PIP_VERSION 8.1.2
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
' \
|
||||
&& runDeps=' \
|
||||
tcl \
|
||||
tk \
|
||||
' \
|
||||
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
|
||||
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
|
@ -41,6 +50,7 @@ RUN set -ex \
|
|||
-o \
|
||||
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
||||
\) -exec rm -rf '{}' + \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /usr/src/python ~/.cache
|
||||
|
||||
# make some useful symlinks that are expected to exist
|
||||
|
|
|
@ -36,6 +36,8 @@ RUN set -ex \
|
|||
pax-utils \
|
||||
readline-dev \
|
||||
sqlite-dev \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
xz-dev \
|
||||
zlib-dev \
|
||||
&& cd /usr/src/python \
|
||||
|
|
|
@ -33,6 +33,8 @@ RUN set -ex \
|
|||
libsqlite3-dev \
|
||||
libssl-dev \
|
||||
make \
|
||||
tcl-dev \
|
||||
tk-dev \
|
||||
xz-utils \
|
||||
zlib1g-dev \
|
||||
' \
|
||||
|
|
Loading…
Reference in New Issue