Browse Source

Python 2.7.11

INADA Naoki 9 years ago
parent
commit
3238a23e0e

+ 5 - 4
toolset/setup/linux/languages/python2.sh

@@ -6,17 +6,18 @@ RETCODE=$(fw_exists ${IROOT}/py2.installed)
   return 0; }
   return 0; }
 
 
 PY2_ROOT=$IROOT/py2
 PY2_ROOT=$IROOT/py2
+PY2_VERSION=2.7.11
 
 
-fw_get -O http://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
-fw_untar Python-2.7.10.tgz
-cd Python-2.7.10
+fw_get -O http://www.python.org/ftp/python/${PY2_VERSION}/Python-${PY2_VERSION}.tar.xz
+fw_untar Python-${PY2_VERSION}.tar.xz
+cd Python-${PY2_VERSION}
 ./configure --prefix=${IROOT}/py2 --disable-shared --quiet
 ./configure --prefix=${IROOT}/py2 --disable-shared --quiet
 make -j4 --quiet 2>&1 | tee $IROOT/python-install.log | awk '{ if (NR%100 == 0) printf "."}'
 make -j4 --quiet 2>&1 | tee $IROOT/python-install.log | awk '{ if (NR%100 == 0) printf "."}'
 make install --quiet 2>&1 | tee -a $IROOT/python-install.log | awk '{ if (NR%100 == 0) printf "."}'
 make install --quiet 2>&1 | tee -a $IROOT/python-install.log | awk '{ if (NR%100 == 0) printf "."}'
 cd ..
 cd ..
 
 
 $PY2_ROOT/bin/python -m ensurepip -U
 $PY2_ROOT/bin/python -m ensurepip -U
-$PY2_ROOT/bin/pip install -U setuptools pip
+$PY2_ROOT/bin/pip install -U setuptools pip wheel
 
 
 echo "export PY2_ROOT=${PY2_ROOT}" > $IROOT/py2.installed
 echo "export PY2_ROOT=${PY2_ROOT}" > $IROOT/py2.installed
 echo -e "export PYTHONHOME=\$PY2_ROOT" >> $IROOT/py2.installed
 echo -e "export PYTHONHOME=\$PY2_ROOT" >> $IROOT/py2.installed

+ 5 - 4
toolset/setup/linux/languages/python3.sh

@@ -6,17 +6,18 @@ RETCODE=$(fw_exists ${IROOT}/py3.installed)
   return 0; }
   return 0; }
   
   
 PY3_ROOT=$IROOT/py3
 PY3_ROOT=$IROOT/py3
+PY3_VERSION=3.5.1
 
 
-fw_get -O http://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz
-fw_untar Python-3.5.1.tar.xz
-cd Python-3.5.1
+fw_get -O http://www.python.org/ftp/python/${PY3_VERSION}/Python-${PY3_VERSION}.tar.xz
+fw_untar Python-${PY3_VERSION}.tar.xz
+cd Python-${PY3_VERSION}
 ./configure --prefix=$PY3_ROOT --disable-shared --with-computed-gotos --quiet
 ./configure --prefix=$PY3_ROOT --disable-shared --with-computed-gotos --quiet
 make -j4 --quiet 2>&1 | tee $IROOT/python3-install.log | awk '{ if (NR%100 == 0) printf "."}'
 make -j4 --quiet 2>&1 | tee $IROOT/python3-install.log | awk '{ if (NR%100 == 0) printf "."}'
 make install --quiet 2>&1 | tee -a $IROOT/python3-install.log | awk '{ if (NR%100 == 0) printf "."}'
 make install --quiet 2>&1 | tee -a $IROOT/python3-install.log | awk '{ if (NR%100 == 0) printf "."}'
 cd ..
 cd ..
 
 
 $PY3_ROOT/bin/python3 -m ensurepip -U
 $PY3_ROOT/bin/python3 -m ensurepip -U
-$PY3_ROOT/bin/pip3 install -U setuptools pip
+$PY3_ROOT/bin/pip3 install -U setuptools pip wheel
 
 
 echo "export PY3_ROOT=${PY3_ROOT}" > $IROOT/py3.installed
 echo "export PY3_ROOT=${PY3_ROOT}" > $IROOT/py3.installed
 echo -e "export PYTHONHOME=\$PY3_ROOT" >> $IROOT/py3.installed
 echo -e "export PYTHONHOME=\$PY3_ROOT" >> $IROOT/py3.installed