mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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>
This commit is contained in:
parent
e9a5eebc78
commit
9f68a2a9c4
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue