summaryrefslogtreecommitdiff
path: root/user/py3-setuptools/APKBUILD
blob: 9081ae0b550f96709889ba54d247a97d13c19609 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=py3-setuptools
_pkgname=setuptools
pkgver=39.2.0
pkgrel=0
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"
source="$pkgname-$pkgver.zip::https://files.pythonhosted.org/packages/1a/04/d6f1159feaccdfc508517dba1929eb93a2854de729fa68da9d5c6b48fa00/setuptools-39.2.0.zip
	pythonpath.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="46baf6a48f93279d541ca10e0d71005565a7c9fbe4a8fe6b6378455edc57e5246bad3000ae9c9c47503a04e37816f9fa02e6c4328955ad16939c01c89c65d6b2  py3-setuptools-39.2.0.zip
ee248df4174240e90a35190e0a47bf0fa4cc5601adc64eff5fd585c8919e47c3a2bb6191b8333800016567d8a0f0f71b7c2306779ea7e4ab7c8951bdee28ef5e  pythonpath.patch"