Skip to content

Commit d7606be

Browse files
[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 03df941) Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
1 parent 6947564 commit d7606be

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Mac/BuildScript/resources/install_certificates.command‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
# Installing into the global environment is the point; ensure that the user
3+
# hasn't configured pip to always require a virtual environment.
4+
unset PIP_REQUIRE_VENV
5+
unset PIP_REQUIRE_VIRTUALENV
26

37
/Library/Frameworks/Python.framework/Versions/@PYVER@/bin/python@PYVER@ << "EOF"
48

0 commit comments

Comments
 (0)