From ee16e55d205ff326d585faeb1318a35cf5589586 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 18 Apr 2022 12:59:52 +0800 Subject: text fixes for wheel change * Add description for "wheel" command * Explain why pip3 warning does not matter for us * Format and typo fixes --- chapter08/meson.xml | 6 ++++-- chapter08/python.xml | 16 +++++++++++----- chapter08/wheel.xml | 27 ++++++++++++++++++++++----- 3 files changed, 37 insertions(+), 12 deletions(-) (limited to 'chapter08') diff --git a/chapter08/meson.xml b/chapter08/meson.xml index 91b4b61bc..d2132b5a1 100644 --- a/chapter08/meson.xml +++ b/chapter08/meson.xml @@ -70,14 +70,16 @@ install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/ -w dist - Put the created wheels into the `dist` directory. + Put the created wheels into the + dist directory. --find-links dist - Install wheels from the 'dist' directory. + Install wheels from the + dist directory. diff --git a/chapter08/python.xml b/chapter08/python.xml index 76530d782..1af9e0db9 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -93,11 +93,17 @@ make install In serveral places we use the pip3 command to - install Python 3 programs and modules for all users as root. This conflicts - with the Python developers recommendation to build packages in a virtual - environment as a regular user. To this end, a multi-line warning is - written when using pip3 as the root user. If desired, - supress this warning by running the following command: + install Python 3 programs and modules for all users as + root. This conflicts + with the Python developers recommendation to install packages into a + virtual environment or the home directory of a regular user (by running + pip3 as this user). To this end, a multi-line warning + is written when using pip3 as the + root user. The main reason + of this recommendation is for avoiding a conflict with the system + package manager (dpkg for example), but LFS does not + have a system-wide package manager so this is not a problem. If desired, + suppress this warning by running the following command: sed -e '/def warn_if_run_as_root/a\ return' \ -i /usr/lib/python3.10/site-packages/pip/_internal/cli/req_command.py diff --git a/chapter08/wheel.xml b/chapter08/wheel.xml index 78fa94fd8..f15824ad5 100644 --- a/chapter08/wheel.xml +++ b/chapter08/wheel.xml @@ -23,7 +23,7 @@ - <para>Wheel is a Python library that implements the reference + <para>Wheel is a Python library that is the reference implementation of the Python wheel packaging standard.</para> <segmentedlist> @@ -50,7 +50,7 @@ <varlistentry> <term><command>install</command></term> <listitem> - <para>Install the package</para> + <para>Install the package.</para> </listitem> </varlistentry> @@ -79,16 +79,33 @@ <title>Contents of Wheel - Installed module + Installed program Installed directory - wheel.py + wheel /usr/lib/python&python-minor;/site-packages/wheel - + + Short Descriptions + + + + + wheel + + + is an utility to unpack, pack, or convert wheel packages + + + wheel + + + + + -- cgit v1.2.3-54-g00ecf