Files
ports/extra/python2-setuptools/spkgbuild
2018-05-02 21:35:04 +08:00

19 lines
576 B
Plaintext

# description : Easily download, build, install, upgrade, and uninstall Python packages
# depends : python2-packaging python2-appdirs
name=python2-setuptools
version=39.1.0
release=2
source=(python-setuptools-$version.tar.gz::https://github.com/pypa/setuptools/archive/v$version.tar.gz)
md5sum=(64bd5869c9a11d5f19613ee71f9c7423)
build() {
cd setuptools-$version
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
python2 bootstrap.py
python2 setup.py build
python2 setup.py install --prefix=/usr --root="$PKG" --optimize=1 --skip-build
rm $PKG/usr/bin/easy_install
}