Tweak pip3 instructions

This commit is contained in:
Bruce Dubbs 2022-08-09 21:44:44 -05:00
parent 2fe5021cfa
commit 3094b8c742
4 changed files with 15 additions and 6 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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>