From 2a03857520c1f6e192357ddeafde527ea55e9930 Mon Sep 17 00:00:00 2001 From: s3lph Date: Wed, 7 Nov 2018 15:04:11 +0100 Subject: [PATCH] (Hopefully) fixed site-packages path in dpkg script, v2 --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d4bc24..2c09052 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,7 +72,9 @@ build_debian: - 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.6/site-packages matemat/usr/lib/python3/dist-packages + - mkdir -p matemat/usr/lib/python3/dist-packages/ + - rsync -a matemat/usr/lib/python3.6/site-packages/ matemat/usr/lib/python3/dist-packages/ + - rm -rf matemat/usr/lib/python3.6/ - 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