all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: "Ludovic Courtès" <ludo@gnu.org>, 53439@debbugs.gnu.org
Subject: [bug#53439] [PATCH] doc: Document search paths.
Date: Sat, 22 Jan 2022 13:49:57 +0100	[thread overview]
Message-ID: <ea86219a8debbda7f381aebeb75b0d1f1daa5483.camel@telenet.be> (raw)
In-Reply-To: <20220122104757.1837-1-ludo@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1361 bytes --]

Ludovic Courtès schreef op za 22-01-2022 om 11:47 [+0100]:
> +What this @code{native-search-paths} field says is that, when the
> +@code{python} package is used, the @env{GUIX_PYTHONPATH} environment
> +variable must be defined to include all the
> +@file{lib/python/3.9/site-packages} sub-directories encountered in its
> +environment.  (The @code{native-} bit means that, if we are in a
> +cross-compilation environment, only native inputs may be added to the
> +search path.)  In the NumPy example above, the profile where

This bit about inputs/native-inputs seems a little imprecise:

(package
  (name "foobarify")
  [...]
  (inputs guile)
  (propagated-inputs
    ;; TODO: would be nice to unpropagate
    (list guile-foo guile-bar guile-ify))
  ;; "foobarify" allows running arbitrary Guile scripts,
  ;; so allow the user to use arbitrary Guile libraries
  ;; from the environment  in their scripts at will.
  (native-search-paths
    [GUILE_LOAD_PATH, GUILE_LOAD_COMPILED_PATH, ...]))

$ [ guix cross-compile a virtual image with foobarify in the system
profile]

IIUC, guile-foo, guile-bar and guile-ify will be included in the
GUILE_LOAD_PATH/GUILE_LOAD_COMPILED_PATH of the system profile, even
though we are cross-compiling and they are 'inputs' and not 'native-
inputs' of 'foobarify' ...

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

  reply	other threads:[~2022-01-22 13:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-22 10:47 [bug#53439] [PATCH] doc: Document search paths Ludovic Courtès
2022-01-22 12:49 ` Maxime Devos [this message]
2022-01-22 15:54   ` Ludovic Courtès
2022-01-22 12:54 ` Maxime Devos
2022-01-22 13:00 ` Maxime Devos
2022-01-23  3:00 ` Maxim Cournoyer
2022-01-23 21:40   ` Ludovic Courtès
2022-01-23 22:41     ` bug#53439: " Ludovic Courtès
2022-01-24 21:06     ` [bug#53439] " Maxim Cournoyer
2022-01-25 13:06       ` Ludovic Courtès
2022-01-26  1:50         ` Maxim Cournoyer
     [not found] ` <handler.53439.D53439.164297769417402.notifdone@debbugs.gnu.org>
2022-01-24  9:41   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ea86219a8debbda7f381aebeb75b0d1f1daa5483.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=53439@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.