From 101d0b29c2873492479e4505cba8b715ef03263e Mon Sep 17 00:00:00 2001 From: Pekka Ristola Date: Tue, 9 Apr 2024 19:14:19 +0300 Subject: [PATCH] r-bspm: compile python bytecode --- BioArchLinux/r-bspm/PKGBUILD | 3 +++ BioArchLinux/r-bspm/lilac.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/BioArchLinux/r-bspm/PKGBUILD b/BioArchLinux/r-bspm/PKGBUILD index 211a7f3614..74e8690958 100644 --- a/BioArchLinux/r-bspm/PKGBUILD +++ b/BioArchLinux/r-bspm/PKGBUILD @@ -39,6 +39,9 @@ build() { mkdir build dbus R CMD INSTALL -l build "$_pkgname" \ --configure-vars="BUILD_ROOT=$srcdir/dbus" + + # compile python bytecode + python -m compileall -o 0 -o 1 -s build -p /usr/lib/R/library "build/$_pkgname/service" } check() { diff --git a/BioArchLinux/r-bspm/lilac.yaml b/BioArchLinux/r-bspm/lilac.yaml index 57d2b65036..12f0e50e43 100644 --- a/BioArchLinux/r-bspm/lilac.yaml +++ b/BioArchLinux/r-bspm/lilac.yaml @@ -10,3 +10,4 @@ update_on: repo: cran md5: true - alias: r +- alias: python