Skip to content

Commit 03df941

Browse files
authored
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.
1 parent 87d4d44 commit 03df941

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)