aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-08-26 19:35:47 +0800
committerXi Ruoyao <xry111@xry111.site>2022-08-26 20:32:26 +0800
commit0b4c0a0fe8ecc81e9b0e05ac3a37732ba8aed80c (patch)
tree1e4dbec2b996aa354b8c67240e61f1e367ac56b2
parent1da889e4b5b6c57baaed1c61d75448d28017f151 (diff)
python: supress "failed to check new pip version" or "a new pip version is available" warningsxry111/queue-11.3
-rw-r--r--chapter08/python.xml16
1 files changed, 14 insertions, 2 deletions
diff --git a/chapter08/python.xml b/chapter08/python.xml
index da1f75cdc..0f50bf6ef 100644
--- a/chapter08/python.xml
+++ b/chapter08/python.xml
@@ -102,12 +102,24 @@
<systemitem class='username'>root</systemitem> user. The main reason
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 commands:</para>
+ have a system-wide package manager so this is not a problem. And,
+ <command>pip3</command> will attempt to check for a new version of
+ itself whenever it's run. As domain name resolving is not configured
+ yet in LFS chroot environment, it will fail to check for a new version
+ and produce a warning. Once we boot the LFS system and set up network
+ connection, it will then produce a warning telling the user to update it
+ from a pre-built wheel on PyPI if any new version is available. But LFS
+ consider <command>pip3</command> a part of Python 3 so it should not be
+ updated separately, and an update from a pre-built wheel will deviate
+ from our purpose to build a Linux system from source code. So the
+ warning for a new <command>pip3</command> version should be ignored as
+ well. If desired, suppress these warnings by running the following
+ commands:</para>
<screen><userinput remap="install">cat &gt; /etc/pip.conf &lt;&lt; EOF
[global]
root-user-action = ignore
+disable-pip-version-check = true
EOF
</userinput></screen>
<!--