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
|
2018-07-16 23:23:02 +10:00
|
|
|
version=40.0.0
|
|
|
|
release=1
|
2018-07-02 07:36:28 +10:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.zip)
|
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
|
|
|
|
}
|