1234567891011121314151617 |
- #!/bin/bash
- RETCODE=$(fw_exists ${IROOT}/py2.installed)
- [ ! "$RETCODE" == 0 ] || { return 0; }
- 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
- ./configure --prefix=${IROOT}/py2 --disable-shared --quiet
- 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 "."}'
- cd ..
- ${IROOT}/py2/bin/python -m ensurepip -U
- ${IROOT}/py2/bin/pip install -U setuptools pip
- touch ${IROOT}/py2.installed
|