1
0
forked from ports/opt
opt/python-six/Pkgfile

23 lines
654 B
Plaintext
Raw Normal View History

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