blob: 1ff2114769bc5c35ac0af59ef77cbcd04567235c (
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
56
57
|
# $Id: PKGBUILD 243119 2015-08-08 03:48:29Z fyan $
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=pypy-setuptools
pkgname=('pypy3-setuptools' 'pypy-setuptools')
pkgver=20.8.1
pkgrel=1
epoch=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
license=('PSF')
makedepends=('pypy' 'pypy3')
url="http://pypi.python.org/pypi/setuptools"
source=("https://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz")
sha512sums=('a3270b1fb1873347ed503d6efcbf4074d8cb25feddaa17ad3dd5541890b6b0e51f00fb5b2bddb3cc0b38168a18ceb95e2405f1000d28def513434833d56fc4eb')
prepare() {
cp -a setuptools-${pkgver}{,-pypy}
cd "${srcdir}"/setuptools-${pkgver}
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env pypy3|" setuptools/command/easy_install.py
cd "${srcdir}"/setuptools-${pkgver}-pypy
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env pypy|" setuptools/command/easy_install.py
}
# Rename the following function to check() to enable checking
_check() {
# Workaround UTF-8 tests by setting LC_CTYPE
# Check pypy3 module
cd "${srcdir}"/setuptools-${pkgver}
LC_CTYPE=en_US.utf8 pypy3 setup.py ptr
# Check pypy2 module
cd "${srcdir}"/setuptools-${pkgver}-pypy
LC_CTYPE=en_US.utf8 pypy setup.py ptr
}
package_pypy3-setuptools() {
depends=('pypy3')
provides=('pypy3-distribute')
replaces=('pypy3-distribute')
cd "${srcdir}/setuptools-${pkgver}"
pypy3 setup.py install --prefix=/opt/pypy3 --root="${pkgdir}" --optimize=1
}
package_pypy-setuptools() {
depends=('pypy')
provides=('pypy-distribute' 'setuptools')
replaces=('pypy-distribute' 'setuptools')
cd "${srcdir}/setuptools-${pkgver}-pypy"
pypy setup.py install --prefix=/opt/pypy --root="${pkgdir}" --optimize=1
}
|