Hello. I’m trying to fix a pip bug (https://github.com/pypa/pip/issues/13084) where running an outdated pip version as a pyz only prompts you too upgrade based on the version of pip installed in the environment, it does not consider the pyz. I was wondering if anybody could could help me understand the order of operations when it comes how the pip version is checked during pip install. I see that main_parser.py line 31( parser.version = get_pip_version()) gets called during the install command, and at some part of the execution self_outdated_check.py is called (which is responsible for much of the version checking and prompting you to upgrade), I also see that logger.verbose(“Using %s”, get_pip_version()) is executed in install.py at line 308. I’d really appreciate it if someone could tell me how these fit together, Cheers.
1 Like