blob: bf8978fd1c582ea5bca61fdfeb3762e07800c5af (
plain)
1 # Description: Core utilities for Python packages.
2 # URL: https://pypi.python.org/pypi/packaging/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-pyparsing python3-six python3-pip
5 # Optional: python3-flit-core
6
7 name=python3-packaging
8 version=23.0
9 release=1
10 source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
11
12 build() {
13 cd packaging-$version
14
15 if prt-get isinst python3-flit-core; then
16 /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
17 /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
18 else
19 /usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps packaging
20 rm -rf $PKG/usr/lib/python*/site-packages/packaging-$version.dist-info/{INSTALLER,REQUESTED}
21 fi
22 }
|