install.sh 415 B

123456789101112131415161718
  1. #!/bin/bash
  2. mkdir -p $IROOT/.pip_cache
  3. export PIP_DOWNLOAD_CACHE=$IROOT/.pip_cache
  4. fw_depends python2
  5. export PY2_ROOT=$IROOT/py2
  6. export PY2_PIP=$PY2_ROOT/bin/pip
  7. $PY2_PIP install --install-option="--prefix=${PY2_ROOT}" -r $TROOT/requirements.txt
  8. cd $TROOT
  9. rm -fr web2py
  10. git clone --recursive --branch R-2.10.3 https://github.com/web2py/web2py.git
  11. cp -r app/app/ web2py/applications/
  12. cp app/routes.py web2py/