python3-cleo: updated outdated build logic

This commit is contained in:
Tim Biermann 2023-08-22 17:05:50 +02:00
parent 60af2df84f
commit 5f4db43bc1
2 changed files with 5 additions and 10 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3+NoE9k13L20eIP28cmZFnIa5h1Gkksu5F0Y7BoLRc1VLRWDATHmvLaAi4k4hDkwIuyvXD0tAs6uDQ0WZ7qCjAQ=
SHA256 (Pkgfile) = bdb4cbd49f7bdaf64599ccd5bb01a3f11898ba0ad510c988824a745b3a5c8b93
RWSagIOpLGJF33zJv39jUWoIrXt4BoN0vYlZasiGhOWaq/Hq+06mepDRqJz2IvM4nxiJ6oPHaqLb4oK4Opb0x+y0lRkh6DSdEws=
SHA256 (Pkgfile) = e964fefadcb898f71b4172703188a1ceaf04563d5f25da84721083b6abfbf93d
SHA256 (.footprint) = ad7b54a095e26b16f6ea267e3f860513613e6ceafe192dcbda04fc53697a345e
SHA256 (python3-cleo-2.0.1.tar.gz) = cb9b60c9559d26a289b0536b134f9efe1b59632f51dc38b20c8a9076b99e0f07

View File

@ -1,4 +1,4 @@
# Description: Cleo allows you to create beautiful and testable command-line interfaces.
# Description: Cleo allows you to create beautiful and testable command-line interfaces
# URL: https://github.com/python-poetry/cleo
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-clikit python3-rapidfuzz
@ -11,11 +11,6 @@ source=(https://github.com/python-poetry/cleo/archive/$version/$name-$version.ta
build() {
cd cleo-$version
if prt-get isinst python3-poetry; then
/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 cleo
rm -r $PKG/usr/lib/python3.10/site-packages/cleo-2.0.1.dist-info/{INSTALLER,REQUESTED}
fi
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
}