From c72aefd97eeb7bc33a9516b56811960e50a5154e Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 12 Oct 2026 13:47:35 +0800 Subject: [PATCH] gh-159210: Disable virtualenv enforcement when updating certificates. (GH-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. (cherry picked from commit 03df94188e7c9052b3c511019b4e44b3ac5b3398) Co-authored-by: Russell Keith-Magee --- Mac/BuildScript/resources/install_certificates.command | 4 ++++ 1 file changed, 4 insertions(+) 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"