26 lines
941 B
Plaintext
26 lines
941 B
Plaintext
# 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
|
|
|
|
name=python3-more-itertools
|
|
version=9.1.0
|
|
release=1
|
|
source=(https://pypi.org/packages/source/m/more-itertools/more-itertools-$version.tar.gz)
|
|
|
|
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}
|
|
}
|