File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22# Version to install
3- PYTHON_39_VERSION =3.9.2
3+ PYTHON_VERSION =3.9.6
44NB_CORES=$( nproc)
55
66# Needed dependencies
77apt update
88apt -y install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev liblzma-dev
99
1010# Get last python 3.9.x sources
11- curl -O https://www.python.org/ftp/python/$PYTHON_39_VERSION /Python-$PYTHON_39_VERSION .tar.xz
12- tar -xf Python-$PYTHON_39_VERSION .tar.xz && cd Python-$PYTHON_39_VERSION
11+ curl -O https://www.python.org/ftp/python/$PYTHON_VERSION /Python-$PYTHON_VERSION .tar.xz
12+ tar -xf Python-$PYTHON_VERSION .tar.xz && cd Python-$PYTHON_VERSION
1313
1414# Configure the compilation
1515./configure --enable-optimizations
@@ -19,7 +19,7 @@ make -j $NB_CORES
1919make altinstall
2020
2121# Clean files
22- cd .. && rm -rf Python-3.9. *
22+ cd .. && rm -rf Python-3.*
2323
2424# Test install
2525python3.9 --version
You can’t perform that action at this time.
0 commit comments