summaryrefslogtreecommitdiff
path: root/modules/python.in
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-06-13 10:53:58 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-06-13 20:46:13 +0200
commit9273079f313855813ccc75b48b06f46ab9f1e9fb (patch)
treefab812b44403fbb51b9368f338d0efa0e9ffddde /modules/python.in
parent4197555e6f7fa732bb5bf605c850972bdd84ad29 (diff)
Install 'python' executable.
* modules/Makefile.am (nodist_bin_SCRIPTS): New variable. * modules/python.in: Set '%load-path' and '%load-compiled-path'.
Diffstat (limited to 'modules/python.in')
-rwxr-xr-xmodules/python.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/python.in b/modules/python.in
index 1dad073..6b57242 100755
--- a/modules/python.in
+++ b/modules/python.in
@@ -2,6 +2,13 @@
--no-auto-compile -e main -s
!#
+(eval-when (expand load eval)
+ (set! %load-path
+ (cons "@prefix@/share/guile/site/@GUILE_EFFECTIVE_VERSION@" %load-path))
+ (set! %load-compiled-path
+ (cons "@libdir@/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache"
+ %load-compiled-path)))
+
(use-modules (ice-9 match)
(language python spec)
(language python module python)