Skip to content

Commit 3784523

Browse files
authored
Update Python 3.9 version to 3.9.6
1 parent ba0cd28 commit 3784523

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

install-python.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash
22
# Version to install
3-
PYTHON_39_VERSION=3.9.2
3+
PYTHON_VERSION=3.9.6
44
NB_CORES=$(nproc)
55

66
# Needed dependencies
77
apt update
88
apt -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
1919
make altinstall
2020

2121
# Clean files
22-
cd .. && rm -rf Python-3.9.*
22+
cd .. && rm -rf Python-3.*
2323

2424
# Test install
2525
python3.9 --version

0 commit comments

Comments
 (0)