123456789101112131415161718192021 |
- #!/bin/bash
- #
- echo "* Initialising Submodules"
- git submodule init
- git submodule update
-
- echo "* Creating virtual env"
- mkvenv
-
- echo "* Linking pylibs to venv"
- for path in `find pylibs/ -maxdepth 1 -type d`; do
- if [[ $path != "pylibs/" ]];then
- lib=${path#*/}
- echo Creating symbolic link for library $lib
- rm -f venv/lib/python*/site-packages/$lib
- ln -s ../../../../$path venv/lib/python*/site-packages/
- fi
- done
-
- echo "* Creating application link in /usr/local/bin"
- sudo rm -f /usr/local/bin/ptpython && sudo ln -s `pwd`/venv/bin/ptpython /usr/local/bin
|