ptpython/reposinit

22 lines
560 B
Plaintext
Raw Normal View History

2022-05-08 11:42:23 +02:00
#!/bin/bash
2022-05-08 11:23:39 +02:00
#
2022-05-08 11:42:23 +02:00
echo "* Initialising Submodules"
git submodule init
git submodule update
2022-05-08 15:29:15 +02:00
echo "* Creating virtual env"
2022-05-08 11:23:39 +02:00
mkvenv
echo "* Linking pylibs to venv"
2021-10-07 09:07:01 +02:00
for path in `find pylibs/ -maxdepth 1 -type d`; do
if [[ $path != "pylibs/" ]];then
lib=${path#*/}
echo Creating symbolic link for library $lib
2022-05-08 11:42:23 +02:00
rm -f venv/lib/python*/site-packages/$lib
ln -s ../../../../$path venv/lib/python*/site-packages/
2021-10-07 09:07:01 +02:00
fi
done
2022-05-08 15:29:15 +02:00
echo "* Creating application link in /usr/local/bin"
2022-05-08 11:51:29 +02:00
sudo rm -f /usr/local/bin/ptpython && sudo ln -s `pwd`/venv/bin/ptpython /usr/local/bin