Skip to content

Commit

Permalink
chore: upgrade to python 3.9 for debian10
Browse files Browse the repository at this point in the history
  • Loading branch information
zmstone committed Oct 8, 2024
1 parent 54c764c commit cbab5ea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions debian10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ RUN apt-get install -y \
expect

RUN apt-get install -y gcc make zlib1g-dev libffi-dev libssl-dev \
&& wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \
&& tar xvf Python-3.7.4.tgz \
&& cd Python-3.7.4 \
&& wget https://www.python.org/ftp/python/3.9.20/Python-3.9.20.tgz \
&& tar xvf Python-3.9.20.tgz \
&& cd Python-3.9.20 \
&& echo "_socket socketmodule.c" >> Modules/Setup.dist \
&& echo "_ssl _ssl.c -DUSE_SSL -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -L/usr/local/ssl/lib -lssl -lcrypto" >> Modules/Setup.dist \
&& ./configure --prefix=/usr/local/python3.7.4 \
&& ./configure --prefix=/usr/local/python3.9.20 \
&& make \
&& make install \
&& rm -rf /usr/bin/python3 /usr/bin/python \
&& ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python3 \
&& ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python
&& ln -s /usr/local/python3.9.20/bin/python3.9 /usr/bin/python3 \
&& ln -s /usr/local/python3.9.20/bin/python3.9 /usr/bin/python
RUN curl -k -L -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py \
&& python /tmp/get-pip.py \
&& python3 /tmp/get-pip.py
ENV PATH=/usr/local/python3.7.4/bin:$PATH
ENV PATH=/usr/local/python3.9.20/bin:$PATH

COPY get-cmake.sh /get-cmake.sh
RUN /get-cmake.sh build
Expand Down

0 comments on commit cbab5ea

Please sign in to comment.