APP=python-setuptools
VERSION=46.4.0
BUILD=1sml
HOMEPAGE='https://github.com/pypa/setuptools'
DESC="python module installation helper"
REQUIRES="python3"

build() {
  mkandenterbuilddir
  rm -rf setuptools-$VERSION

  tar xf $SRCDIR/setuptools-$VERSION.tar.?z*
  cd setuptools-$VERSION 
  fixbuilddirpermissions

  python bootstrap.py
  python setup.py install --prefix="" --root=$PKG --optimize=1

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
fe22f2fd29791fbdb065c5ef4eca478f623f029dc6ef572e206b47419df311e42d2968e2f3752f1299a35bd71b59bcf69c0f6fb67b477ba810fd0c141ea1183b  setuptools-46.4.0.tar.lz
"
