blob: 88f65c0d2b9e765164f25cdeaedc9a3ccf949c5b (
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.7.0
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=('6cfd139d7ab737777366093e76912e01d3e8f92ef8e6980a90ba733ea1ea0e4064f1dd32d4278eccc5140c92d087c43daaccf428592bb83b5163bcbe0353e08f')
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
}
|