From febe7f264361cc6993c94f3c6cb3581df864093d Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 2 Apr 2023 19:26:36 +0200 Subject: [PATCH] python3-entrypoints: always use python3-flit-core --- python3-entrypoints/.signature | 5 ++--- python3-entrypoints/Pkgfile | 17 ++++------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/python3-entrypoints/.signature b/python3-entrypoints/.signature index 5b5e5b847..aac645e2d 100644 --- a/python3-entrypoints/.signature +++ b/python3-entrypoints/.signature @@ -1,6 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF34lewPlEQL9J4uzxg9aE+ScM/fxLCYUkNKfDokpyjMBZytRZ7Jcq01hjRICi/Ku2IOZSlgCy3HNeOzBknQIboAI= -SHA256 (Pkgfile) = ed32ff731e82926d8115189469b00145b365af0e30733cc5f96274fadb56a1fa +RWSagIOpLGJF35lvQ3CzzfkziPX1rZ4lmzXAzCjqcyiCnxm/tAOghTFGmLxK0Py8yyOgu7QNMIVZ7gA6wg+hA+JkD/JpLAdROQk= +SHA256 (Pkgfile) = e23c2b1c49046ad95a8e9f98eed6da371fb1052f33d5541946a31ac242ddd2e0 SHA256 (.footprint) = facc7ba8f49f2979983cae00c09172b95a7d4f30fce814dbaf453893a6900656 -SHA256 (python3-entrypoints-0.4-github.tar.gz) = d2197a94aa73e70a7f60600e654ac9918ca2a0ee5480eb875296c42220a02272 SHA256 (entrypoints-0.4.tar.gz) = b706eddaa9218a19ebcd67b56818f05bb27589b1ca9e8d797b74affad4ccacd4 diff --git a/python3-entrypoints/Pkgfile b/python3-entrypoints/Pkgfile index 336b1867e..3a103f7f7 100644 --- a/python3-entrypoints/Pkgfile +++ b/python3-entrypoints/Pkgfile @@ -1,25 +1,16 @@ # Description: Discover and load entry points from installed packages # URL: https://github.com/takluyver/entrypoints # Maintainer: Tim Biermann, tbier at posteo dot de -# Depends on: python3-pip -# Optional: python3-flit-core +# Depends on: python3-build python3-flit-core python3-installer name=python3-entrypoints version=0.4 release=1 -source=(https://github.com/takluyver/entrypoints/archive/$version/$name-$version-github.tar.gz - https://pypi.io/packages/source/e/entrypoints/entrypoints-$version.tar.gz) +source=(https://pypi.io/packages/source/e/entrypoints/entrypoints-$version.tar.gz) build() { cd entrypoints-$version - _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])') - if prt-get isinst python3-flit-core; 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 --compile --no-deps entrypoints==$version - fi - - rm -rf $PKG/usr/lib/python$_pyver/site-packages/entrypoints-$version.dist-info/{INSTALLER,REQUESTED} + /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation + /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl }