diff options
author | Xi Ruoyao <xry111@xry111.site> | 2022-08-26 19:35:47 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2022-08-26 23:52:18 +0800 |
commit | bf6f9e75ee62ff6f73805d27285800b816444fbf (patch) | |
tree | 2074282a7fc82dc15e0b928f156aea46811ed3d0 | |
parent | 5353a1948fa64dac71603a6477f15bfa6390411b (diff) |
python: supress "failed to check new pip version" or "a new pip version is available" warnings
The non-text change during freeze is approved by bdubbs.
-rw-r--r-- | chapter08/python.xml | 16 |
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 > /etc/pip.conf << EOF [global] root-user-action = ignore +disable-pip-version-check = true EOF </userinput></screen> <!-- |