blob: a5039962c7064a7944abd6415df4e8efc5558cb1 (
plain)
1 # Description: Python 2 and 3 compatibility utilities.
2 # URL: https://pypi.python.org/pypi/six/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python
5
6 name=python-six
7 version=1.12.0
8 release=1
9 source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.tar.gz)
10
11 build() {
12 cd ${name#*-}-$version
13
14 /usr/bin/python setup.py build
15
16 /usr/bin/python setup.py install \
17 --prefix=/usr --root=$PKG --optimize=1
18
19 # remove sdist metadata, as wheel metadata will be used with python-pip
20 find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \
21 -name "${name#*-}-$version-py*.egg-info" -delete
22 }
|