description="Easily download, build, install, upgrade, and uninstall Python packages"
url="https://bitbucket.org/pypa/setuptools"

packager="tnut <tnut@nutyx.org>"
contributors="Alienus"

run=(python2)

name=python2-setuptools
version=41.2.0

PKGMK_KEEP_SOURCES=no

source=(https://github.com/pypa/setuptools/archive/v$version.tar.gz)
        
build() {
    cd setuptools-$version
    export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
    python2 bootstrap.py
    python2 setup.py build install --root=$PKG
    rm $PKG/usr/bin/easy_install
}
