ptpython configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reposinit 560B

123456789101112131415161718192021
  1. #!/bin/bash
  2. #
  3. echo "* Initialising Submodules"
  4. git submodule init
  5. git submodule update
  6. echo "* Creating virtual env"
  7. mkvenv
  8. echo "* Linking pylibs to venv"
  9. for path in `find pylibs/ -maxdepth 1 -type d`; do
  10. if [[ $path != "pylibs/" ]];then
  11. lib=${path#*/}
  12. echo Creating symbolic link for library $lib
  13. rm -f venv/lib/python*/site-packages/$lib
  14. ln -s ../../../../$path venv/lib/python*/site-packages/
  15. fi
  16. done
  17. echo "* Creating application link in /usr/local/bin"
  18. sudo rm -f /usr/local/bin/ptpython && sudo ln -s `pwd`/venv/bin/ptpython /usr/local/bin