https://github.com/python/cpython/commit/03df94188e7c9052b3c511019b4e44b3ac5b3398
commit: 03df94188e7c9052b3c511019b4e44b3ac5b3398
branch: main
author: Russell Keith-Magee <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2026-10-12T13:47:35+08:00
summary:

gh-159210: Disable virtualenv enforcement when updating certificates. (#159214)

Ensures that the macOS Install Certificates script can run when the user has
PIP_REQUIRE_VIRTUALENV or PIP_REQUIRE_VENV set in their shell.

files:
M Mac/BuildScript/resources/install_certificates.command

diff --git a/Mac/BuildScript/resources/install_certificates.command 
b/Mac/BuildScript/resources/install_certificates.command
index 700eb462b68c187..aa44961da7f4680 100755
--- a/Mac/BuildScript/resources/install_certificates.command
+++ b/Mac/BuildScript/resources/install_certificates.command
@@ -1,4 +1,8 @@
 #!/bin/sh
+# Installing into the global environment is the point; ensure that the user
+# hasn't configured pip to always require a virtual environment.
+unset PIP_REQUIRE_VENV
+unset PIP_REQUIRE_VIRTUALENV
 
 /Library/Frameworks/Python.framework/Versions/@PYVER@/bin/python@PYVER@ << 
"EOF"
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to