aboutsummaryrefslogtreecommitdiffstats
path: root/compile_python_debian.sh
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-04-03 14:39:39 +0100
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-04-03 14:39:39 +0100
commite988e2f7cc3b74dcc307b4734034741983849944 (patch)
treec86a440c285fa88878da5b8057994274fe359952 /compile_python_debian.sh
parent4bfe396ad7cdf2f43454420d1178c9ac07922496 (diff)
fits better now
Diffstat (limited to 'compile_python_debian.sh')
-rwxr-xr-xcompile_python_debian.sh25
1 files changed, 12 insertions, 13 deletions
diff --git a/compile_python_debian.sh b/compile_python_debian.sh
index c3dcf1b..be9696c 100755
--- a/compile_python_debian.sh
+++ b/compile_python_debian.sh
@@ -3,20 +3,19 @@
## run like this: ./compile_python_debian.sh 3.8.1 3.8.1 (for example)
PYTHON_VERSION=$1
-PYTHON_RELEASE=$2
-echo "Updating system...."
-sudo apt update
-sudo apt upgrade
-sudo apt-get install -y make build-essential libssl-dev zlib1g-dev
-sudo apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
-sudo apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev
+#echo "Updating system...."
+#sudo apt update
+#sudo apt upgrade
+#sudo apt-get install -y make build-essential libssl-dev zlib1g-dev
+#sudo apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
+#sudo apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev
cd $HOME/Downloads
-wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_RELEASE.tar.xz
+wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz
-DIR="$HOME/.python$PYTHON_RELEASE"
+DIR="$HOME/.python$PYTHON_VERSION"
if [ -d $DIR ]
then
@@ -28,14 +27,14 @@ else
mkdir $DIR
fi
-tar -xvf Python-$PYTHON_RELEASE.tar.xz
-cd Python-$PYTHON_RELEASE
+tar -xvf Python-$PYTHON_VERSION.tar.xz
+cd Python-$PYTHON_VERSION
#e we set LDFLAGS pointing to install directory if system does not have libpython3.6 Here we set LDFLAGS pointing to install directory if system does not have libpython3.6
./configure --prefix="$DIR" LDFLAGS="-Wl,--rpath=$DIR/lib"
#./configure --prefix="$DIR" --enabled-shared LDFLAGS="-Wl,--rpath=$DIR/lib"
make
make install
cd ~
-rm -rf $HOME/Downloads/Python-$PYTHON_RELEASE
-rm $HOME/Downloads/Python-$PYTHON_RELEASE.tar.xz
+rm -rf $HOME/Downloads/Python-$PYTHON_VERSION
+rm $HOME/Downloads/Python-$PYTHON_VERSION.tar.xz
echo "Done...!"