2017-02-04 11:38:30 +11:00
|
|
|
# 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
|
2021-09-11 17:27:07 +02:00
|
|
|
version=1.16.0
|
2018-12-26 20:49:08 +11:00
|
|
|
release=1
|
2018-07-02 07:06:56 +10:00
|
|
|
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
|
|
|
|
2018-07-02 07:06:56 +10:00
|
|
|
/usr/bin/python setup.py build
|
2017-02-04 01:19:59 +11:00
|
|
|
|
2018-07-02 07:06:56 +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:06:56 +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:18:12 +11:00
|
|
|
}
|