We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7ce7c0 commit a5185a2Copy full SHA for a5185a2
bin/install-python.sh
@@ -0,0 +1,26 @@
1
+#!/bin/bash
2
+# This downloads and install python3.4 to the directory passed in
3
+
4
+VERSION=3.4.9
5
+DEST=$1
6
7
+if [ "$DEST" = "" ]; then
8
+ echo "Syntax: $0 <install-directory>"
9
+ exit 1
10
+fi
11
12
+if [ -e "$DEST/bin/python3.4" ]; then
13
+ echo "Python already installed in $DEST - skipping install"
14
+ exit 0
15
16
17
+mkdir -p $DEST
18
19
+cd /tmp
20
+curl https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tar.xz --output Python-${VERSION}.tar.xz --silent
21
+tar Jxf Python-${VERSION}.tar.xz
22
+cd Python-${VERSION}
23
+./configure --prefix=$DEST
24
+make
25
+make install
26
+echo "Python $VERSION installed in $DEST"
0 commit comments