opt/python-six/Pkgfile

23 lines
654 B
Plaintext
Raw Normal View History

# Description: Python 2 and 3 compatibility utilities.
2017-02-03 15:19:59 +01:00
# URL: https://pypi.python.org/pypi/six/
2017-02-03 15:18:12 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2017-02-03 15:19:59 +01:00
# Depends on: python
2017-02-03 15:18:12 +01:00
2017-02-05 05:15:49 +01:00
name=python-six
2017-09-25 12:48:44 +02:00
version=1.11.0
release=2
source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.tar.gz)
2017-02-03 15:18:12 +01:00
build() {
2017-02-05 05:15:49 +01:00
cd ${name#*-}-$version
2017-02-03 15:19:59 +01:00
/usr/bin/python setup.py build
2017-02-03 15:19:59 +01:00
/usr/bin/python setup.py install \
--prefix=/usr --root=$PKG --optimize=1
# 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-03 15:18:12 +01:00
}