blob: f10f9bd3a8a37944524ee284a6d00b419791df77 (
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
|
# Maintainer: Michael Schubert <mschu.dev at gmail>
pkgname=python-rpy2-hg
pkgver=r3742.186f7948b5ce
pkgrel=1
pkgdesc="A simple, robust Python interface to the R Programming Language."
arch=('i686' 'x86_64')
url="https://rpy2.bitbucket.io/"
license=('MPL' 'GPL' 'LGPL')
makedepends=('mercurial')
depends=('python-numpy' 'r')
provides=('python-rpy2')
conflicts=('python-rpy2')
source=($pkgname::hg+https://bitbucket.org/rpy2/rpy2)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
echo "r$(hg identify -n).$(hg identify -i)"
}
build() {
cd "$srcdir/$pkgname"
python setup.py build
}
# fails with: AttributeError: module 'rpy2.situation' has no attribute 'get_rlib_path'
# check() {
# cd "$srcdir/$pkgname"
# python setup.py test
# }
package() {
cd "$srcdir/$pkgname"
python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}
|