Move python package to the right place

This commit is contained in:
s3lph 2019-11-26 15:27:53 +01:00
parent 4513c26a82
commit dce8a0d208
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ build_debian:
- python3 setup.py egg_info install --root=package/debian/spaceapi-server/ --prefix=/usr --optimize=1
- cd package/debian/spaceapi-server
- mkdir -p usr/lib/python3/dist-packages/
- rsync -a usr/lib/python3.8/site-packages/spaceapi_server usr/lib/python3/dist-packages/spaceapi_server
- cp -r usr/lib/python3.8/site-packages/spaceapi_server* usr/lib/python3/dist-packages/
- rm -rf usr/lib/python3.8/
# Remove compiled Python files
- find usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true

View file

@ -2,7 +2,7 @@
Description=Lightweight SpaceAPI Endpoint Server
[Service]
ExecStart=/usr/bin/python3 -m spaceapi-server /etc/spaceapi-server/config.json
ExecStart=/usr/bin/python3 -m spaceapi_server /etc/spaceapi-server/config.json
ExecReload=/usr/bin/kill -HUP $MAINPID
User=spaceapi-server