python3.sh 332 B

123456789101112131415
  1. #!/bin/bash
  2. RETCODE=$(fw_exists py3)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_get http://www.python.org/ftp/python/3.4.1/Python-3.4.1.tar.xz
  5. tar vxf Python-3.4.1.tar.xz
  6. pre=$(pwd)
  7. cd Python-3.4.1
  8. ./configure --prefix=${pre}/py3 --disable-shared
  9. make -j4
  10. make install
  11. cd ..
  12. py3/bin/pip3 install -r ../config/requirements-py3.txt