blob: ad71638b3645542972b837fe32bdf49b2aa8f17d (
plain)
1 # Description: Wrappers to build Python packages using PEP 517 hooks
2 # URL: https://github.com/pypa/pep517
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python3-tomli
5
6 name=python3-pep517
7 version=0.13.0
8 release=1
9 source=(https://pypi.python.org/packages/source/p/pep517/pep517-$version.tar.gz)
10
11 build() {
12 cd pep517-$version
13
14 _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
15
16 if prt-get isinst python3-flit-core; then
17 /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
18 /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
19 else
20 /usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps pep517
21 fi
22
23 rm -rf $PKG/usr/lib/python$_pyver/site-packages/pep517-$version.dist-info/{INSTALLER,REQUESTED}
24 }
|