blob: 1c3b22d794d7b289ff10ef9b3bdcbfa7034121d1 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Andrew Manison <amanison@anselsystems.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-setuptools
_pkgname=${pkgname#py-}
pkgver=38.2.4
pkgrel=2
pkgdesc="A collection of enhancements to the Python distutils"
url="https://pypi.python.org/pypi/setuptools"
arch="noarch"
license="PSF"
depends=""
makedepends="python2-dev python3-dev"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
options="!check" #no testsuite
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
python2 setup.py build
python3 bootstrap.py
python3 setup.py build
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/bin
}
_py2() {
replaces=$pkgname
provides="$pkgname=$pkgver-r$pkgrel"
_py python2
}
_py3() {
replaces="python3"
_py python3
}
_py() {
local python="$1"
local pyver="${1:6:1}"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py --quiet install --prefix=/usr --root="$subpkgdir"
# remove unversioned binary
rm -f "$subpkgdir"/usr/bin/easy_install
}
sha512sums="f06badd27f0b797482bf42314edb7ffde7fa80556825b0ef27b125a3fc876b9d2ec26bf2b540f88b39f52fb58536e762c5bef24d9a92115b5f5decdf01f00c6c setuptools-38.2.4.tar.gz"
|