https://github.com/python/cpython/commit/719c25732662ae8a26132c42b0d1dac5db9f06a7
commit: 719c25732662ae8a26132c42b0d1dac5db9f06a7
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2026-10-12T06:13:27Z
summary:

[3.15] gh-159210: Disable virtualenv enforcement when updating certificates. 
(GH-159214) (#159218)

Ensures that the macOS Install Certificates script can run when the user has
PIP_REQUIRE_VIRTUALENV or PIP_REQUIRE_VENV set in their shell.
(cherry picked from commit 03df94188e7c9052b3c511019b4e44b3ac5b3398)

Co-authored-by: Russell Keith-Magee <[email protected]>

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