[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/08: doc: Note that `guix shell` should contain base language packages
From: |
guix-commits |
Subject: |
07/08: doc: Note that `guix shell` should contain base language packages. |
Date: |
Fri, 25 Aug 2023 12:28:37 -0400 (EDT) |
jpoiret pushed a commit to branch master
in repository guix.
commit 9f68a2a9c41166ec5ac24c082bcd96c433dd2ede
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Thu Mar 30 22:42:10 2023 +0200
doc: Note that `guix shell` should contain base language packages.
* 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 c60e0b87b2..6105195bd9 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-2023 Josselin Poiret@*
Copyright @copyright{} 2021, 2023 muradm@*
Copyright @copyright{} 2021, 2022 Andrew Tropin@*
Copyright @copyright{} 2021 Sarah Morgensen@*
@@ -6271,6 +6271,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
- branch master updated (1c916c167b -> 4fefbd4f14), guix-commits, 2023/08/25
- 03/08: build: Add dependency on guix script for help2man targets., guix-commits, 2023/08/25
- 02/08: image: Add mbr-raw-image-type and use by default., guix-commits, 2023/08/25
- 05/08: gnu: gcc-toolchain: Add empty librt.a., guix-commits, 2023/08/25
- 06/08: gnu: system: Add home-directory-permissions field to <user-account>., guix-commits, 2023/08/25
- 07/08: doc: Note that `guix shell` should contain base language packages.,
guix-commits <=
- 01/08: tests: guix-shell: Use bash instead of user's $SHELL., guix-commits, 2023/08/25
- 04/08: graph: Add GraphML backend., guix-commits, 2023/08/25
- 08/08: tests: guix-home: Fix description search for home-mcron., guix-commits, 2023/08/25