|
| From: | Paolo Bonzini |
| Subject: | Re: [PATCH 27/27] mkvenv.py: experiment; use distlib to generate script entry points |
| Date: | Thu, 11 May 2023 09:02:11 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
On 5/11/23 05:54, John Snow wrote:
+ if checkpip():
+ # We ran ensurepip. We need to re-run post_init...!
+ args = [sys.executable, __file__, "post_init"]
+ subprocess.run(args, check=True)
+ return
+
# Finally, generate a 'pip' script so the venv is usable in a normal
# way from the CLI. This only happens when we inherited pip from a
# parent/system-site and haven't run ensurepip in some way.
Can't this just be: + if not checkpip(): + # Finally, generate a 'pip' script so the venv is usable in a normal + # way from the CLI. This only happens when we inherited pip from a + # parent/system-site and haven't run ensurepip in some way. + generate_console_scripts(["pip"]) even squashed in the original Debian 10 patch? You don't need to generate the pip shims if ensurepip has been run. Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |