blob: 9fd22fdb954837f29bc8deb45ea01e2aec869b60 (
plain)
1 # Description: A built-package format for Python
2 # URL: https://pypi.python.org/pypi/wheel
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-setuptools
5
6 name=python3-wheel
7 version=0.38.4
8 release=1
9 source=(https://files.pythonhosted.org/packages/source/w/wheel/${name#*-}-$version.tar.gz)
10
11 build() {
12 cd ${name#*-}-$version
13
14 export PYTHONHASHSEED=0
15
16 # https://github.com/pypa/wheel/pull/365
17 rm -r src/wheel/vendored
18 sed -i 's/from .vendored.packaging import tags/from packaging import tags/' src/wheel/bdist_wheel.py
19
20 /usr/bin/python3 setup.py build
21 /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
22 }
|