blob: b5a3a6fd54d8ac922fcb1b51cb0903f1fbee65b9 (
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
5
6 name=python3-packaging
7 version=20.1
8 release=1
9 source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
10
11 build() {
12 cd ${name#*-}-$version
13
14 /usr/bin/python3 setup.py build
15
16 /usr/bin/python3 setup.py install \
17 --prefix=/usr --root=$PKG --optimize=1
18
19 # remove sdist metadata, as wheel metadata will be used with python3-pip
20 find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \
21 -name "${name#*-}-$version-py*.egg-info" -delete
22 }
|