2017-02-04 01:26:00 +11:00
|
|
|
# Description: Core utilities for Python packages.
|
|
|
|
# URL: https://pypi.python.org/pypi/packaging/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2018-07-02 07:00:59 +10:00
|
|
|
# Depends on: python
|
2017-02-04 01:26:00 +11:00
|
|
|
|
2017-02-05 16:04:00 +11:00
|
|
|
name=python-packaging
|
2018-03-02 13:01:06 +11:00
|
|
|
version=17.1
|
2018-07-02 07:00:59 +10:00
|
|
|
release=2
|
|
|
|
source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.tar.gz)
|
2017-02-04 01:26:00 +11:00
|
|
|
|
|
|
|
build() {
|
2017-02-05 16:04:00 +11:00
|
|
|
cd ${name#*-}-$version
|
2017-02-04 01:26:00 +11:00
|
|
|
|
2018-07-02 07:00:59 +10:00
|
|
|
/usr/bin/python setup.py build
|
2017-02-04 01:26:00 +11:00
|
|
|
|
2018-07-02 07:00:59 +10:00
|
|
|
/usr/bin/python setup.py install \
|
|
|
|
--prefix=/usr --root=$PKG --optimize=1
|
2017-02-04 18:07:38 +11:00
|
|
|
|
2018-07-02 07:00:59 +10:00
|
|
|
# remove sdist metadata, as wheel metadata will be used with python-pip
|
|
|
|
find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \
|
|
|
|
-name "${name#*-}-$version-py*.egg-info" -delete
|
2017-02-04 01:26:00 +11:00
|
|
|
}
|