aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2022-08-09 21:44:44 -0500
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2022-08-09 21:44:44 -0500
commit3094b8c742ed234c5a8423f2bcaf0a9d92802c33 (patch)
treea5306a8ac33102695eae419ee8b8357ed96dd15d /chapter08
parent2fe5021cfa5951ab8d62eebcf4798bc9ffc0f6e0 (diff)
Tweak pip3 instructions
Diffstat (limited to 'chapter08')
-rw-r--r--chapter08/jinja2.xml2
-rw-r--r--chapter08/markupsafe.xml2
-rw-r--r--chapter08/python.xml10
-rw-r--r--chapter08/wheel.xml7
4 files changed, 15 insertions, 6 deletions
diff --git a/chapter08/jinja2.xml b/chapter08/jinja2.xml
index 6548dff8b..8fa12dd25 100644
--- a/chapter08/jinja2.xml
+++ b/chapter08/jinja2.xml
@@ -46,7 +46,7 @@
<para>Install the package:</para>
-<screen><userinput remap="install">pip3 install --no-index --find-links dist Jinja2</userinput></screen>
+<screen><userinput remap="install">pip3 install --no-index --no-user --find-links dist Jinja2</userinput></screen>
</sect2>
diff --git a/chapter08/markupsafe.xml b/chapter08/markupsafe.xml
index 322ec2730..9481a194a 100644
--- a/chapter08/markupsafe.xml
+++ b/chapter08/markupsafe.xml
@@ -48,7 +48,7 @@
<para>Install the package:</para>
-<screen><userinput remap="install">pip3 install --no-index --find-links dist Markupsafe</userinput></screen>
+<screen><userinput remap="install">pip3 install --no-index --no-user --find-links dist Markupsafe</userinput></screen>
</sect2>
diff --git a/chapter08/python.xml b/chapter08/python.xml
index bee232704..da1f75cdc 100644
--- a/chapter08/python.xml
+++ b/chapter08/python.xml
@@ -103,12 +103,18 @@
of this recommendation is for avoiding a conflict with the system
package manager (<command>dpkg</command> 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:</para>
+ suppress this warning by running the following commands:</para>
+ <screen><userinput remap="install">cat &gt; /etc/pip.conf &lt;&lt; EOF
+[global]
+root-user-action = ignore
+EOF
+</userinput></screen>
+<!--
<screen><userinput remap="install">sed -e '/def warn_if_run_as_root/a\ return' \
-i /usr/lib/python3.10/site-packages/pip/_internal/cli/req_command.py
</userinput></screen>
-
+-->
<important>
<para>
In LFS and BLFS we normally build and install Python modules with the
diff --git a/chapter08/wheel.xml b/chapter08/wheel.xml
index 8e8436ffd..0f6ba7cb6 100644
--- a/chapter08/wheel.xml
+++ b/chapter08/wheel.xml
@@ -80,11 +80,14 @@
<segmentedlist>
<segtitle>Installed program</segtitle>
- <segtitle>Installed directory</segtitle>
+ <segtitle>Installed directories</segtitle>
<seglistitem>
<seg>wheel</seg>
- <seg>/usr/lib/python&python-minor;/site-packages/wheel</seg>
+ <seg>
+ /usr/lib/python&python-minor;/site-packages/wheel and
+ /usr/lib/python&python-minor;/site-packages/wheel-0.37.1-py3.10.egg-info
+ </seg>
</seglistitem>
</segmentedlist>