forked from platypush/platypush
A more resilient way of renaming site-packages to dist-packages.
This commit is contained in:
parent
d969119f60
commit
2676d7babe
1 changed files with 11 additions and 4 deletions
15
.drone.yml
15
.drone.yml
|
@ -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 -r -e '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"
|
||||||
|
@ -286,7 +285,11 @@ steps:
|
||||||
|
|
||||||
- echo "--- Building git package"
|
- echo "--- Building git package"
|
||||||
- pip install --prefix="$GIT_BUILD_DIR/usr" --no-cache --no-deps .
|
- pip install --prefix="$GIT_BUILD_DIR/usr" --no-cache --no-deps .
|
||||||
- mv "$GIT_BUILD_DIR/usr/lib/python$${PY_VERSION}/site-packages" "$GIT_BUILD_DIR/usr/lib/python$${PY_VERSION}/dist-packages"
|
- |
|
||||||
|
find "$GIT_BUILD_DIR" -name "site-packages" | while read dir; do
|
||||||
|
base="$(dirname "$dir")"
|
||||||
|
mv "$dir" "$base/dist-packages"
|
||||||
|
done
|
||||||
|
|
||||||
- mkdir -p "$GIT_BUILD_DIR/DEBIAN"
|
- mkdir -p "$GIT_BUILD_DIR/DEBIAN"
|
||||||
- |
|
- |
|
||||||
|
@ -334,7 +337,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 -r -e '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"
|
||||||
|
@ -345,7 +347,12 @@ steps:
|
||||||
|
|
||||||
- echo "--- Building git package"
|
- echo "--- Building git package"
|
||||||
- pip install --prefix="$GIT_BUILD_DIR/usr" --no-cache --no-deps .
|
- pip install --prefix="$GIT_BUILD_DIR/usr" --no-cache --no-deps .
|
||||||
- mv "$GIT_BUILD_DIR/usr/lib/python$${PY_VERSION}/site-packages" "$GIT_BUILD_DIR/usr/lib/python$${PY_VERSION}/dist-packages"
|
- |
|
||||||
|
find "$GIT_BUILD_DIR" -name "site-packages" | while read dir; do
|
||||||
|
base="$(dirname "$dir")"
|
||||||
|
mv "$dir" "$base/dist-packages"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
- mkdir -p "$GIT_BUILD_DIR/DEBIAN"
|
- mkdir -p "$GIT_BUILD_DIR/DEBIAN"
|
||||||
- |
|
- |
|
||||||
|
|
Loading…
Reference in a new issue