2017-02-04 17:48:33 +11:00
|
|
|
# Description: Easily download, build, install, upgrade, and uninstall Python packages.
|
|
|
|
# URL: https://pypi.python.org/pypi/setuptools
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2018-07-02 07:36:28 +10:00
|
|
|
# Depends on: python3
|
2017-02-04 17:48:33 +11:00
|
|
|
|
|
|
|
name=python3-setuptools
|
2020-08-23 11:14:22 +10:00
|
|
|
version=50.0.0
|
2020-08-28 19:48:55 +10:00
|
|
|
release=2
|
2020-08-23 11:14:22 +10:00
|
|
|
source=(https://github.com/pypa/${name#*-}/archive/v$version/${name#*-}-v$version.tar.gz)
|
2017-02-04 17:48:33 +11:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${name#*-}-$version
|
|
|
|
|
|
|
|
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
|
|
|
|
|
2018-07-02 07:36:28 +10:00
|
|
|
/usr/bin/python3 bootstrap.py
|
|
|
|
/usr/bin/python3 setup.py build
|
2017-02-04 17:48:33 +11:00
|
|
|
|
2018-07-02 07:36:28 +10:00
|
|
|
/usr/bin/python3 setup.py install \
|
|
|
|
--prefix=/usr --root=$PKG --optimize=1
|
2017-02-04 17:48:33 +11:00
|
|
|
|
|
|
|
rm $PKG/usr/bin/easy_install
|
2020-08-28 19:48:55 +10:00
|
|
|
|
|
|
|
# wtf?
|
|
|
|
(
|
|
|
|
local pyver3="$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')"
|
|
|
|
cd $PKG/usr/lib/python$pyver3/site-packages
|
|
|
|
mv setuptools-$version*-py$pyver3.egg-info setuptools-$version-py$pyver3.egg-info
|
|
|
|
)
|
2017-02-04 17:48:33 +11:00
|
|
|
}
|