forked from ports/contrib
26 lines
856 B
Plaintext
26 lines
856 B
Plaintext
# Description: A built-package format for Python
|
|
# URL: https://pypi.python.org/pypi/wheel
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: python3-setuptools
|
|
|
|
name=python3-wheel
|
|
version=0.36.2
|
|
release=1
|
|
source=(# https://files.pythonhosted.org/packages/source/w/wheel/${name#*-}-$version.tar.gz
|
|
# bsdtar: Pathname can't be converted from UTF-8 to current locale.
|
|
# bsdtar: Error exit delayed from previous errors.
|
|
http://crux.ster.zone/downloads/$name/${name#*-}-$version.tar.gz)
|
|
|
|
build() {
|
|
cd ${name#*-}-$version
|
|
|
|
export PYTHONHASHSEED=0
|
|
|
|
# https://github.com/pypa/wheel/pull/365
|
|
rm -r src/wheel/vendored
|
|
sed -i 's/from .vendored.packaging import tags/from packaging import tags/' src/wheel/bdist_wheel.py
|
|
|
|
/usr/bin/python3 setup.py build
|
|
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
|
|
}
|