summaryrefslogtreecommitdiff
path: root/user/py3-setuptools/APKBUILD
blob: 6bee60420ab226643d47419db0af763a53b9b109 (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.1.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="net"  # Circular dependency with py3-tox. Passes on x86_64
subpackages="py3-easy_install:easy_install"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	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="9fa00930a1923782c2f6356bf992410d42b3dd81b5a673e2957eaf8941787fbea324851c5df48e37601641d004ee900c88a1cfa97ef9df374879586a36efa5c6  py3-setuptools-39.1.0.tar.gz
ee248df4174240e90a35190e0a47bf0fa4cc5601adc64eff5fd585c8919e47c3a2bb6191b8333800016567d8a0f0f71b7c2306779ea7e4ab7c8951bdee28ef5e  pythonpath.patch"