python3-more-itertools: always use python3-flit-core

This commit is contained in:
Tim Biermann 2023-04-02 19:32:56 +02:00
parent aa9903f05c
commit 66b25e270c
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 5 additions and 14 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF37NfAqiGyGtxPLZo5HPVe0jNyPUD7XShalO/SvWUQ3tXecxBHtGicd7/cFWTfXt6oCu/ghX91sJpeCE0v2XCFgg=
SHA256 (Pkgfile) = d7dab4d486e7ea14384dba67e88bda7a6695c09dbf549fcd1b74cd8d6e504d9e
RWSagIOpLGJF3wTu2TDwlv+3osSV7H4LwLU7RJGbjARC2/s3LW3aMN11wFYWy3E0py0gFBYOjkgNeMb8Nz9b4jqJGqC66b1AigM=
SHA256 (Pkgfile) = 20ba67d4137662177a924e61736335aa32bb6fcd93b0a766b2969e72a63bf3ca
SHA256 (.footprint) = 7c4a726147f3ff34c4c7290ea52d6acfd49ca26067c384038fa854ca0b94b90a
SHA256 (more-itertools-9.1.0.tar.gz) = cabaa341ad0389ea83c17a94566a53ae4c9d07349861ecb14dc6d0345cf9ac5d

View File

@ -1,8 +1,7 @@
# Description: More routines for operating on iterables, beyond itertools
# URL: https://github.com/more-itertools/more-itertools
# 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-more-itertools
version=9.1.0
@ -12,14 +11,6 @@ source=(https://pypi.org/packages/source/m/more-itertools/more-itertools-$versio
build() {
cd more-itertools-$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 more-itertools==$version
fi
rm -rf $PKG/usr/lib/python$_pyver/site-packages/more_itertools-$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
}