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
|
|
|
|
|
|
|
|
name=python3-packaging
|
2021-01-27 23:21:27 +01:00
|
|
|
version=20.8
|
2019-08-12 12:25:16 +02:00
|
|
|
release=1
|
2018-07-01 23:28:53 +02:00
|
|
|
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 ${name#*-}-$version
|
|
|
|
|
2018-07-01 23:28:53 +02:00
|
|
|
/usr/bin/python3 setup.py build
|
2017-02-04 07:53:09 +01:00
|
|
|
|
2018-07-01 23:28:53 +02:00
|
|
|
/usr/bin/python3 setup.py install \
|
|
|
|
--prefix=/usr --root=$PKG --optimize=1
|
2017-02-04 07:53:09 +01:00
|
|
|
|
2018-07-01 23:28:53 +02:00
|
|
|
# remove sdist metadata, as wheel metadata will be used with python3-pip
|
|
|
|
find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \
|
|
|
|
-name "${name#*-}-$version-py*.egg-info" -delete
|
2017-02-04 07:53:09 +01:00
|
|
|
}
|