Move python package to the right place
This commit is contained in:
parent
4513c26a82
commit
dce8a0d208
2 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ build_debian:
|
||||||
- python3 setup.py egg_info install --root=package/debian/spaceapi-server/ --prefix=/usr --optimize=1
|
- python3 setup.py egg_info install --root=package/debian/spaceapi-server/ --prefix=/usr --optimize=1
|
||||||
- cd package/debian/spaceapi-server
|
- cd package/debian/spaceapi-server
|
||||||
- mkdir -p usr/lib/python3/dist-packages/
|
- 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/
|
- rm -rf usr/lib/python3.8/
|
||||||
# Remove compiled Python files
|
# Remove compiled Python files
|
||||||
- find usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true
|
- find usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Description=Lightweight SpaceAPI Endpoint Server
|
Description=Lightweight SpaceAPI Endpoint Server
|
||||||
|
|
||||||
[Service]
|
[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
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||||
User=spaceapi-server
|
User=spaceapi-server
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue