[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
109/131: doc: Update references to PYTHONPATH and some examples.
From: |
guix-commits |
Subject: |
109/131: doc: Update references to PYTHONPATH and some examples. |
Date: |
Fri, 29 Jan 2021 09:22:16 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 6046a6034c8db127140f929cf7026bb747baf73a
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jan 25 14:58:01 2021 -0500
doc: Update references to PYTHONPATH and some examples.
The PYTHONPATH variable is replaced by GUIX_PYTHONPATH. Refresh the
packages
used or shown in some of the examples.
---
doc/guix.texi | 37 ++++++++++++++++++++-----------------
1 file changed, 20 insertions(+), 17 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 194bb3a..2347a77 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -48,7 +48,7 @@ Copyright @copyright{} 2017 humanitiesNerd@*
Copyright @copyright{} 2017 Christopher Allan Webber@*
Copyright @copyright{} 2017, 2018, 2019, 2020 Marius Bakke@*
Copyright @copyright{} 2017, 2019, 2020 Hartmut Goebel@*
-Copyright @copyright{} 2017, 2019, 2020 Maxim Cournoyer@*
+Copyright @copyright{} 2017, 2019, 2020, 2021 Maxim Cournoyer@*
Copyright @copyright{} 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice@*
Copyright @copyright{} 2017 George Clemmer@*
Copyright @copyright{} 2017 Andy Wingo@*
@@ -2734,8 +2734,8 @@ you should add them to @file{~/.bash_profile} (or
equivalent file if you
do not use Bash) so that environment variables are set next time you
spawn a shell. You only need to do this once and other search paths
environment variables will be taken care of similarly---e.g., if you
-eventually install @code{python} and Python libraries, @code{PYTHONPATH}
-will be defined.
+eventually install @code{python} and Python libraries,
+@env{GUIX_PYTHONPATH} will be defined.
You can go on installing packages at your will. To list installed
packages, run:
@@ -3471,24 +3471,26 @@ Show details about @var{package}, taken from the list
of available packages, in
recutils manual}).
@example
-$ guix package --show=python | recsel -p name,version
-name: python
-version: 2.7.6
+$ guix package --show=guile | recsel -p name,version
+name: guile
+version: 3.0.5
-name: python
-version: 3.3.5
+name: guile
+version: 3.0.2
+
+name: guile
+version: 2.2.7
+@dots{}
@end example
You may also specify the full name of a package to only get details about a
specific version of it (this time using the @command{guix show} alias):
@example
-$ guix show python@@3.4 | recsel -p name,version
-name: python
-version: 3.4.3
+$ guix show guile@@3.0.5 | recsel -p name,version
+name: guile
+version: 3.0.5
@end example
-
-
@item --list-installed[=@var{regexp}]
@itemx -I [@var{regexp}]
List the currently installed packages in the specified profile, with the
@@ -5493,11 +5495,11 @@ guix environment guile -- make -j4
In other situations, it is more convenient to specify the list of
packages needed in the environment. For example, the following command
-runs @command{python} from an environment containing Python@tie{}2.7 and
+runs @command{python} from an environment containing Python@tie{}3 and
NumPy:
@example
-guix environment --ad-hoc python2-numpy python-2.7 -- python
+guix environment --ad-hoc python-numpy python -- python3
@end example
Furthermore, one might want the dependencies of a package and also some
@@ -7739,8 +7741,9 @@ packages, which consists in running @code{python setup.py
build} and
then @code{python setup.py install --prefix=/gnu/store/@dots{}}.
For packages that install stand-alone Python programs under @code{bin/},
-it takes care of wrapping these programs so that their @env{PYTHONPATH}
-environment variable points to all the Python libraries they depend on.
+it takes care of wrapping these programs so that their
+@env{GUIX_PYTHONPATH} environment variable points to all the Python
+libraries they depend on.
Which Python package is used to perform the build can be specified with
the @code{#:python} parameter. This is a useful way to force a package
- 131/131: gnu: python-attrs: Update to 20.3.0., (continued)
- 131/131: gnu: python-attrs: Update to 20.3.0., guix-commits, 2021/01/29
- 92/131: gnu: python-pyelftools: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 93/131: gnu: python-cheetah: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 94/131: gnu: python-pbkdf2: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 105/131: gnu: python-flask: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 117/131: gnu: gajim: Use GUIX_PYTHONPATH in search path., guix-commits, 2021/01/29
- 130/131: gnu: meson-for-build: Remove package., guix-commits, 2021/01/29
- 87/131: gnu: python-libcst: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 86/131: gnu: python-gevent: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 104/131: gnu: python-databricks-cli: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 109/131: doc: Update references to PYTHONPATH and some examples.,
guix-commits <=
- 106/131: gnu: python-flask-wtf: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 119/131: gnu: python-cloudpickle: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 124/131: gnu: seahorse-adventures: Wrap with GUIX_PYTHONPATH., guix-commits, 2021/01/29
- 118/131: gnu: gnuradio: Use GUIX_PYTHONPATH in search path., guix-commits, 2021/01/29
- 128/131: gnu: ceph: Streamline use of PYTHONPATH., guix-commits, 2021/01/29
- 90/131: gnu: python-natsort: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 97/131: gnu: python-flasgger: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 101/131: gnu: python-aws-xray-sdk: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 107/131: gnu: python-webassets: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 122/131: gnu: avogadro: Wrap with GUIX_PYTHONPATH., guix-commits, 2021/01/29