description="Enhancements to the Python build system"
url="https://launchpad.net/python-distutils-extra"

packager="spiky <spiky@nutyx.org>"

makedepends=(python-setuptools python-wheel)

name=python-distutils-extra
_name="python-distutils-extra"
alias=(${_name})

version=2.39
release=10

source=(http://launchpad.net/python-distutils-extra/trunk/$version/+download/python-distutils-extra-$version.tar.gz)

build() {

  cd ${_name}-$version

  pip3 wheel -w dist \
    --no-build-isolation \
    --no-deps $PWD
  pip3 install --no-index \
    --find-links dist \
    --no-cache-dir    \
    --no-user         \
    --root=$PKG       \
    ${_name}

 find $PKG -type d -name vendor -o -name tests |xargs rm -rf 
}
