Install everything under <prefix>/usr when building the .deb pkg.

This commit is contained in:
Fabio Manganiello 2023-09-18 15:23:53 +02:00
parent b8ba9c36b6
commit a5a780060b

View file

@ -275,7 +275,6 @@ steps:
- echo "--- Parsing metadata" - echo "--- Parsing metadata"
- git config --global --add safe.directory $PWD - git config --global --add safe.directory $PWD
- git pull --rebase origin master --tags - git pull --rebase origin master --tags
- export PY_VERSION=$(python3 --version | awk '{print $2}' | sed -re 's/^([0-9]+\.[0-9]+).*/\1/')
- export VERSION=$(python3 setup.py --version) - export VERSION=$(python3 setup.py --version)
- export HEAD=$(git log --pretty=format:%h HEAD...HEAD~1) - export HEAD=$(git log --pretty=format:%h HEAD...HEAD~1)
- export TAG_URL="https://git.platypush.tech/platypush/platypush/archive/v$VERSION.tar.gz" - export TAG_URL="https://git.platypush.tech/platypush/platypush/archive/v$VERSION.tar.gz"
@ -285,12 +284,7 @@ steps:
- export GIT_DEB="$WORKDIR/$${GIT_PKG_NAME}_$${GIT_VERSION}_all.deb" - export GIT_DEB="$WORKDIR/$${GIT_PKG_NAME}_$${GIT_VERSION}_all.deb"
- echo "--- Building git package" - echo "--- Building git package"
- pip install --prefix="$GIT_BUILD_DIR" --no-cache --no-deps . - pip install --prefix="$GIT_BUILD_DIR/usr" --no-cache --no-deps .
- mkdir -p "$GIT_BUILD_DIR/usr/local"
- mv "$GIT_BUILD_DIR/usr/bin" "$GIT_BUILD_DIR/usr/local"
- mv "$GIT_BUILD_DIR/usr/lib" "$GIT_BUILD_DIR/usr/local"
- mv "$GIT_BUILD_DIR/usr/local/lib/python$${PY_VERSION}/site-packages" "$GIT_BUILD_DIR/usr/local/lib/python$${PY_VERSION}/dist-packages"
- mkdir -p "$GIT_BUILD_DIR/DEBIAN" - mkdir -p "$GIT_BUILD_DIR/DEBIAN"
- | - |
@ -338,7 +332,6 @@ steps:
- echo "--- Parsing metadata" - echo "--- Parsing metadata"
- git config --global --add safe.directory $PWD - git config --global --add safe.directory $PWD
- git pull --rebase origin master --tags - git pull --rebase origin master --tags
- export PY_VERSION=$(python3 --version | awk '{print $2}' | sed -re 's/^([0-9]+\.[0-9]+).*/\1/')
- export VERSION=$(python3 setup.py --version) - export VERSION=$(python3 setup.py --version)
- export HEAD=$(git log --pretty=format:%h HEAD...HEAD~1) - export HEAD=$(git log --pretty=format:%h HEAD...HEAD~1)
- export TAG_URL="https://git.platypush.tech/platypush/platypush/archive/v$VERSION.tar.gz" - export TAG_URL="https://git.platypush.tech/platypush/platypush/archive/v$VERSION.tar.gz"
@ -348,12 +341,7 @@ steps:
- export GIT_DEB="$WORKDIR/$${GIT_PKG_NAME}_$${GIT_VERSION}_all.deb" - export GIT_DEB="$WORKDIR/$${GIT_PKG_NAME}_$${GIT_VERSION}_all.deb"
- echo "--- Building git package" - echo "--- Building git package"
- pip install --prefix="$GIT_BUILD_DIR" --no-cache --no-deps . - pip install --prefix="$GIT_BUILD_DIR/usr" --no-cache --no-deps .
- mkdir -p "$GIT_BUILD_DIR/usr/local"
- mv "$GIT_BUILD_DIR/usr/bin" "$GIT_BUILD_DIR/usr/local"
- mv "$GIT_BUILD_DIR/usr/lib" "$GIT_BUILD_DIR/usr/local"
- mv "$GIT_BUILD_DIR/usr/local/lib/python$${PY_VERSION}/site-packages" "$GIT_BUILD_DIR/usr/local/lib/python$${PY_VERSION}/dist-packages"
- mkdir -p "$GIT_BUILD_DIR/DEBIAN" - mkdir -p "$GIT_BUILD_DIR/DEBIAN"
- | - |