r-reticulate: fix optdepends, compile python bytecode

This commit is contained in:
Pekka Ristola 2023-10-13 14:28:38 +03:00
parent 47abf095d2
commit d4a9fa81ea
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
2 changed files with 7 additions and 0 deletions

View file

@ -38,6 +38,8 @@ checkdepends=(
r-testthat
)
optdepends=(
"ipython: IPython console app"
"python-numpy: translation between R matrices and NumPy arrays"
r-callr
r-cli
r-glue
@ -53,6 +55,9 @@ sha256sums=('8d0d8922cd811153836e95354357615968b005a4d0d4c5734441953c526e4206')
build() {
mkdir -p build
R CMD INSTALL "$_pkgname" -l build
# compile python bytecode
python -m compileall -o 0 -o 1 -s build -p /usr/lib/R/library "build/$_pkgname/python/rpytools"
}
check() {

View file

@ -22,3 +22,5 @@ update_on:
md5: true
- alias: r
- alias: python
- source: manual
manual: 1