aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-setuptools/APKBUILD
blob: 4892b78c3871cbf2220e89bd1ae9c30659f15d0f (plain)
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=32.3.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="8ba8280f8aa4451a7bca68947f09211e  setuptools-32.3.1.tar.gz"
sha256sums="ba56f64ee8d01adb69be6f89bde69ba724fbf4c08670126e40d879677f4f350b  setuptools-32.3.1.tar.gz"
sha512sums="9552bdd97bfaff60469c57ddddc30341028e8754bda176a2fd6a2229569aa46f052975efc524e1540f2935d4a9627e6bf5fb819c7ed5ec7d6333d423ed6f26ef  setuptools-32.3.1.tar.gz"