blob: 32338e65ccfc290bff175dad197a38d6592220c8 (
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=24.2.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=('98742657970e66fa15776fdb28df99ebe503af221da612c9986162d9b933a253325baa56bda64046493d7dd4f7b0e1caea4bc6094163828d3718cf201849fa55')
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
}
|