aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/python.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter08/python.xml')
-rw-r--r--chapter08/python.xml10
1 files changed, 8 insertions, 2 deletions
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