opt/python3-packaging/Pkgfile

23 lines
825 B
Plaintext
Raw Normal View History

2017-02-04 07:53:09 +01:00
# Description: Core utilities for Python packages.
# URL: https://pypi.python.org/pypi/packaging/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3-pyparsing python3-six python3-pip
# Optional: python3-flit-core
2017-02-04 07:53:09 +01:00
name=python3-packaging
2023-01-11 18:25:25 +01:00
version=23.0
2022-07-02 14:32:56 +02:00
release=1
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
2017-02-04 07:53:09 +01:00
build() {
cd packaging-$version
2017-02-04 07:53:09 +01:00
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 --no-deps packaging
2022-12-10 11:44:09 +01:00
rm -rf $PKG/usr/lib/python*/site-packages/packaging-$version.dist-info/{INSTALLER,REQUESTED}
fi
2017-02-04 07:53:09 +01:00
}