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

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 03df94188e)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
This commit is contained in:
Miss Islington (bot)andRussell Keith-Magee authored and GitHub committed 2026-10-12 06:12:15 +00:00
1 parent 69475640ad
commit d7606be917
1 file changed
+4
@@ -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"