blob: ed0269de7d9db8982aa8cee5883684e133ada6cd (
plain) (
tree)
|
|
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=py3-setuptools
_pkgname=setuptools
pkgver=39.0.1
pkgrel=1
pkgdesc="A collection of enhancements to the Python distutils"
url="http://pypi.python.org/project/setuptools"
arch="noarch"
license="MIT"
depends="python3"
makedepends="python3-dev"
#checkdepends="py3-tox"
options="!check" # Circular dependency with py3-tox. Passes on x86_64
subpackages="py3-easy_install:easy_install"
# Note: PyPI download is missing tests/requirements.txt
source="$pkgname-$pkgver.tar.gz::https://github.com/pypa/$_pkgname/archive/v$pkgver.tar.gz
pythonpath.patch
update-wheel-tests.patch"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python3 bootstrap.py
python3 setup.py build
}
check() {
cd "$builddir"
PYTHONPATH="$builddir" TOXENV="py36" tox
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
easy_install() {
pkgdesc="Python easy_install tool (deprecated)"
depends="$pkgname python3"
mkdir -p "$subpkgdir/usr/bin"
mv "$pkgdir"/usr/bin/easy_install* "$subpkgdir/usr/bin"
}
sha512sums="34df8f10e89825975c82059c759690a2cc1486fc84c71a76875b92c2452529fbdd628e11e3043e479ea3f031af18b37a37b86d2a8d2505c300188eccdc109332 py3-setuptools-39.0.1.tar.gz
0c80433534dbb715829f48713690a72a68f6cb7e337215c9aa507df0fbb2a2a242f54d42fab848c6f03729f155dfe0ccb819a6f5d5230e2195e94e20094eec0b pythonpath.patch
5262d1dcdbf8ab40eb4e9fde3e8496e6b4e9809d6056e6069fc11ef5390e064dfef9f7eccec3452e7566b88ab861bf544b57dce249c4291142f307bd6465e45a update-wheel-tests.patch"
|