unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Josselin Poiret via Bug reports for GNU Guix <bug-guix@gnu.org>
To: Josselin Poiret <dev@jpoiret.xyz>,
	Skyler <skyvine@protonmail.com>,
	62448@debbugs.gnu.org
Subject: bug#62448: [PATCH] doc: Note that `guix shell` should contain base language packages.
Date: Thu, 30 Mar 2023 22:42:10 +0200	[thread overview]
Message-ID: <e0ff6805cf50096274d9fb666ef361b2cbf3a4e8.1680208930.git.dev@jpoiret.xyz> (raw)
In-Reply-To: <87fs9mrnqi.fsf@jpoiret.xyz>

* doc/guix.texi (Invoking guix shell): Explain that python must be included in
the invocation even if it is already available in the external environment.

Suggested-by: Skyler <skyvine@protonmail.com>
---
 doc/guix.texi | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index c49e51b72e..879a526b77 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -96,7 +96,7 @@ Copyright @copyright{} 2021 Domagoj Stolfa@*
 Copyright @copyright{} 2021 Hui Lu@*
 Copyright @copyright{} 2021 pukkamustard@*
 Copyright @copyright{} 2021 Alice Brenon@*
-Copyright @copyright{} 2021, 2022 Josselin Poiret@*
+Copyright @copyright{} 2021, 2022, 2023 Josselin Poiret@*
 Copyright @copyright{} 2021 muradm@*
 Copyright @copyright{} 2021, 2022 Andrew Tropin@*
 Copyright @copyright{} 2021 Sarah Morgensen@*
@@ -5959,6 +5959,14 @@ building or downloading any missing package, and runs the
 guix shell python python-numpy -- python3
 @end example
 
+Note that it is necessary to include the main @code{python} package in
+this command even if it is already installed into your environment. This
+is so that the shell environment knows to set @env{PYTHONPATH} and other
+related variables. The shell environment cannot check the previously
+installed environment, because then it would be non-deterministic.  This
+is true for most libraries: their corresponding language package should
+be included in the shell invocation.
+
 @quotation Note
 @cindex shebang, for @command{guix shell}
 @command{guix shell} can be also be used as a script interpreter, also

base-commit: be5e280e5fe26f93bd5a6e3f76e4502edb913a94
-- 
2.39.2





  reply	other threads:[~2023-03-30 20:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-25 19:10 bug#62448: Inconsistent guile enviornment from guix shell Skyler via Bug reports for GNU Guix
2023-03-29 21:23 ` Skyler via Bug reports for GNU Guix
2023-03-30 20:24   ` Josselin Poiret via Bug reports for GNU Guix
2023-03-30 20:42     ` Josselin Poiret via Bug reports for GNU Guix [this message]
2023-04-11 22:57       ` bug#62448: [PATCH] doc: Note that `guix shell` should contain base language packages Skyler via Bug reports for GNU Guix
2023-04-12  8:35         ` Josselin Poiret via Bug reports for GNU Guix
2023-04-12 12:43         ` Maxim Cournoyer
2023-04-13 19:53           ` Skyler via Bug reports for GNU Guix
2023-04-12 11:07       ` Simon Tournier
2023-08-25 16:30         ` Josselin Poiret via Bug reports for GNU Guix

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=e0ff6805cf50096274d9fb666ef361b2cbf3a4e8.1680208930.git.dev@jpoiret.xyz \
    --to=bug-guix@gnu.org \
    --cc=62448@debbugs.gnu.org \
    --cc=dev@jpoiret.xyz \
    --cc=skyvine@protonmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).