guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Append effective version to GUILE_LOAD[_COMPILED]_PATH


From: Jan Nieuwenhuizen
Subject: Re: [PATCH] Append effective version to GUILE_LOAD[_COMPILED]_PATH
Date: Sat, 19 Mar 2016 10:26:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Mikael Djurfeldt writes:

> In python, the version number is higher up in the directory hierarchy,
> which, hypothetically, allows newer versions to have "inventions" in
> the more detailed directory structure:
>
> /usr/lib/python2.6
> /usr/lib/python2.7
> etc
>
> Just a thought.

Python's case is a bit different

 * Python does not look at any environment variable to boot

in contrast, setting GUILE_LOAD_*PATH to the wrong place makes Guile
barf trying to load eval.* or boot-9.*.  Also, guix by default sets
GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH, thus "ensuring" that
different guile major versions will fail to boot.

Do we want Guile to look at environment variables to find its core
libraries?

 * Python has magic numbers and skip/recompiles if a .py[oc] does
   not match

This resembles what Ludovic suggested and what I have submitted a patch
for, to skip invalid .go files.

Greetings, Jan

--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]