python2.sh 407 B

1234567891011121314151617
  1. #!/bin/bash
  2. RETCODE=$(fw_exists py2)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_get http://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
  5. tar vxf Python-2.7.7.tgz
  6. pre=$(pwd)
  7. cd Python-2.7.7
  8. ./configure --prefix=${pre}/py2 --disable-shared
  9. make -j4
  10. make install
  11. cd ..
  12. fw_get https://bootstrap.pypa.io/get-pip.py -O get-pip2.py
  13. py2/bin/python get-pip2.py
  14. py2/bin/pip install -r ../config/requirements.txt