Improved python
Some checks failed
Deploy on push / on-push-deploy_sh-edraft (push) Failing after 7m37s

This commit is contained in:
Sven Heidemann 2023-11-29 13:31:46 +00:00
parent c9b4fe2fec
commit 7172023e40

View File

@ -19,9 +19,13 @@ RUN sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev l
cd Python-3.10.*/ && \
./configure --prefix=/usr/local --enable-optimizations --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" && \
make -j $(nproc) && \
sudo make altinstall && \
make altinstall && \
cd ../ && sudo rm -rf Python-3.10.*/ && sudo rm Python-3.10.*.tgz
RUN sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.10 1
RUN sudo update-alternatives --install /usr/bin/python3 python /usr/local/bin/python3.10 1
RUN sudo update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.10 1
RUN python3.10 -m pip install --upgrade pip
RUN python3.10 -m pip install --user --upgrade pip