From d4a9fa81ea1e9fd36986b50d99900f437e3f5fd5 Mon Sep 17 00:00:00 2001 From: Pekka Ristola Date: Fri, 13 Oct 2023 14:28:38 +0300 Subject: [PATCH] r-reticulate: fix optdepends, compile python bytecode --- BioArchLinux/r-reticulate/PKGBUILD | 5 +++++ BioArchLinux/r-reticulate/lilac.yaml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/BioArchLinux/r-reticulate/PKGBUILD b/BioArchLinux/r-reticulate/PKGBUILD index c367afed75..be30f33a98 100644 --- a/BioArchLinux/r-reticulate/PKGBUILD +++ b/BioArchLinux/r-reticulate/PKGBUILD @@ -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() { diff --git a/BioArchLinux/r-reticulate/lilac.yaml b/BioArchLinux/r-reticulate/lilac.yaml index 97d962e9bc..2d0aa23d31 100644 --- a/BioArchLinux/r-reticulate/lilac.yaml +++ b/BioArchLinux/r-reticulate/lilac.yaml @@ -22,3 +22,5 @@ update_on: md5: true - alias: r - alias: python +- source: manual + manual: 1