summaryrefslogtreecommitdiff
path: root/python3-wheel/Pkgfile
blob: 8256a44c2ed331e19d96dddd055f1bdc36fca9ff (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.37.0
    8 release=1
    9 source=(https://files.pythonhosted.org/packages/source/w/wheel/${name#*-}-$version.tar.gz
   10 	# bsdtar: Pathname can't be converted from UTF-8 to current locale.
   11 	# bsdtar: Error exit delayed from previous errors.
   12 	#http://crux.ster.zone/downloads/$name/${name#*-}-$version.tar.gz)
   13 	)
   14 unpack_source() {
   15 	for file in ${source[@]}; do
   16 		case ${file##*/} in
   17 			${name#*-}-$version.tar.gz)
   18 				tar xfvz $(get_filename $file) -C $SRC ;;
   19 			*)
   20 				cp $(get_filename $file) $SRC ;;
   21 		esac
   22 	done
   23 }
   24 
   25 build() {
   26 	cd ${name#*-}-$version
   27 
   28 	export PYTHONHASHSEED=0
   29 
   30 	# https://github.com/pypa/wheel/pull/365
   31 	rm -r src/wheel/vendored
   32 	sed -i 's/from .vendored.packaging import tags/from packaging import tags/' src/wheel/bdist_wheel.py
   33 
   34 	/usr/bin/python3 setup.py build
   35 	/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
   36 }

Generated by cgit