python3-crashtest: fixed build with python3-poetry installed

This commit is contained in:
Tim Biermann 2022-12-10 10:42:39 +00:00
parent a1d9181d64
commit cdf88e60e6
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 6 additions and 7 deletions

View File

@ -3,11 +3,9 @@ drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/python3.10/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/crashtest-0.4.1.dist-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/crashtest-0.4.1.dist-info/INSTALLER
-rw-r--r-- root/root usr/lib/python3.10/site-packages/crashtest-0.4.1.dist-info/LICENSE
-rw-r--r-- root/root usr/lib/python3.10/site-packages/crashtest-0.4.1.dist-info/METADATA
-rw-r--r-- root/root usr/lib/python3.10/site-packages/crashtest-0.4.1.dist-info/RECORD
-rw-r--r-- root/root usr/lib/python3.10/site-packages/crashtest-0.4.1.dist-info/REQUESTED (EMPTY)
-rw-r--r-- root/root usr/lib/python3.10/site-packages/crashtest-0.4.1.dist-info/WHEEL
drwxr-xr-x root/root usr/lib/python3.10/site-packages/crashtest/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/crashtest/__init__.py

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF30LhzAAdUkK9ufmgrBlPowT0ZAVJftpUU7+CB2XTNYIgxOSf5XtugWMWjKhdaa3IJZLdhqwetRIIsZ2ksxJ2xwc=
SHA256 (Pkgfile) = 778c366034eaa58d6d6517873519328259b8c82f92e34b8fad1af3dba8165954
SHA256 (.footprint) = 4750c910a54f07da41999508c64c664f9907c92b257c65e1c48233d20b063a93
RWSagIOpLGJF30aq0N9f80wmmkMZUAFakH67OXhzWp1MHuDjM2irLdtIwjqlRyiVVV9Sc/6KXmFqRIvpQxahOFePP55m8+fOSws=
SHA256 (Pkgfile) = 0532ef721ccb4dbd4a378e9b8509e82e85672bdb566b69558eef0b7bfe86e28e
SHA256 (.footprint) = 291f47c24a53887cc1fb0276bb9886ae23b27862e7d174a1034334f7faaa6bf9
SHA256 (python3-crashtest-0.4.1.tar.gz) = 4ff59d9bee6d2bc581d462888ec28beb30ad448042c885a2b4ab45dc4910780b

View File

@ -12,9 +12,10 @@ source=(https://github.com/sdispater/crashtest/archive/$version/$name-$version.t
build() {
cd crashtest-$version
if prt-get isinst python3-poetry; then
/usr/bin/poetry build --format wheel
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps dist/*.whl
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
else
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps crashtest
rm -rf $PKG/usr/lib/python*/site-packages/crashtest-$version.dist-info/{INSTALLER,REQUESTED}
fi
}