From 647076150df9e8c404b196e59c9095e74c8cec09 Mon Sep 17 00:00:00 2001 From: s3lph Date: Wed, 7 Nov 2018 14:59:45 +0100 Subject: [PATCH] (Hopefully) fixed site-packages path in dpkg script --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e78b06..8d4bc24 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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