1
0
Fork 0
forked from s3lph/matemat

(Hopefully) fixed site-packages path in dpkg script

This commit is contained in:
s3lph 2018-11-07 14:59:45 +01:00
parent 4e22bfb821
commit 647076150d

View file

@ -69,11 +69,10 @@ build_debian:
- gzip -9 package/debian/matemat/usr/share/doc/matemat/changelog
- cp -r static/ package/debian/matemat/usr/lib/matemat/static/
- cp -r templates/ package/debian/matemat/usr/lib/matemat/templates/
- python3 setup.py egg_info install --root=package/debian/matemat/ --prefix=/usr --optimize=1
- export PYTHON_BIN=$(which python3)
- python3.6 setup.py egg_info install --root=package/debian/matemat/ --prefix=/usr --optimize=1
- cd package/debian
- chmod 0755 -R matemat/DEBIAN
- mv matemat/usr/lib/python3/{site,dist}-packages
- mv matemat/usr/lib/python3.6/site-packages matemat/usr/lib/python3/dist-packages
- find matemat/usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \;
- find matemat/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \;
- mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat