aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-setuptools/APKBUILD
blob: d64e6156585a9592d571e4ac12791836e22f62a6 (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
# Contributor: Andrew Manison <amanison@anselsystems.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-setuptools
_pkgname=${pkgname#py-}
pkgver=29.0.1
pkgrel=0
pkgdesc="A collection of enhancements to the Python distutils"
url="http://pypi.python.org/pypi/setuptools"
arch="noarch"
license="PSF"
provides="py2-setuptools"
depends="python2"
makedepends="python2-dev"
source="${_pkgname}-${pkgver}.tar.gz::https://github.com/pypa/${_pkgname}/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 bootstrap.py || return 1
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1

	# we don't provide a non-suffixed easy_install
	rm -f "$pkgdir"/usr/bin/easy_install || return 1
}

md5sums="6f75f541607969967d4a5db9e39aabc0  setuptools-29.0.1.tar.gz"
sha256sums="95fc53e1c2732593a05c12ad38ed160a228f7d1a19dab2eb778a8a47d73354e0  setuptools-29.0.1.tar.gz"
sha512sums="92b0beb4634aa307e4a6addf803dd282f19cfdec7417528a4bffc9400fed587d9718727889777169f40ae49c80a2fcceaaba77d4fddaffce7d1771d0081747ce  setuptools-29.0.1.tar.gz"