ptpython/reposinit

21 lines
453 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 11:23:39 +02:00
echo "* Intialising Submodules"
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
sudo ln -s `pwd` /usr/local/bin