blob: f73b901c161855f802dd8e2a1dcaceb30342a835 (
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
|
# vim: set filetype=sh:
# Maintainer: Yen Chi Hsuan <yan12125 at gmail.com>
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname='pypy-setuptools'
pkgver=25.0.0
pkgrel=1
epoch=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
license=('PSF')
depends=('pypy')
provides=('pypy-distribute')
replaces=('pypy-distribute')
url="http://pypi.python.org/pypi/setuptools"
source=("https://pypi.io/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz")
sha512sums=('8ac7282382782915498f0b91512e99c981b76e52876c8633f1988b5711ce5cab5f834f63b52b88b31dfa0a645a381ced18f1cb2a15320a1c7a2034c622bb742b')
prepare() {
cd "${srcdir}"/setuptools-${pkgver}
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 pypy setup.py ptr
}
package() {
cd "${srcdir}/setuptools-${pkgver}"
pypy setup.py install --prefix=/opt/pypy --root="${pkgdir}" --optimize=1
}
|