123456789101112131415161718 |
- #!/bin/bash
- RETCODE=$(fw_exists py2)
- [ ! "$RETCODE" == 0 ] || { return 0; }
- fw_get http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
- fw_untar Python-2.7.8.tgz
- pre=$(pwd)
- cd Python-2.7.8
- ./configure --prefix=${pre}/py2 --disable-shared
- make -j4
- make install
- cd ..
- if [ ! -f "get-pip.py" ]; then
- fw_get https://bootstrap.pypa.io/get-pip.py -O get-pip.py
- fi
- ./py2/bin/python get-pip.py
|