From 9273079f313855813ccc75b48b06f46ab9f1e9fb Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 13 Jun 2019 10:53:58 +0200 Subject: Install 'python' executable. * modules/Makefile.am (nodist_bin_SCRIPTS): New variable. * modules/python.in: Set '%load-path' and '%load-compiled-path'. --- modules/Makefile.am | 2 ++ modules/python.in | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/modules/Makefile.am b/modules/Makefile.am index dd73d77..9d7ab54 100644 --- a/modules/Makefile.am +++ b/modules/Makefile.am @@ -129,3 +129,5 @@ EXTRA_DIST += \ build-aux/test-driver.scm \ env.in \ COPYING + +nodist_bin_SCRIPTS = python 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) -- cgit v1.2.3