From e945dc84ada595bf4e8481bd0c508acd33196fe3 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 12 Oct 2026 11:36:12 +0800 Subject: [PATCH 1/2] Disable PIP_REQUIRE_VIRTUALENV when updating certificates. --- Mac/BuildScript/resources/install_certificates.command | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mac/BuildScript/resources/install_certificates.command b/Mac/BuildScript/resources/install_certificates.command index 700eb462b68c187..20ff15915106d06 100755 --- a/Mac/BuildScript/resources/install_certificates.command +++ b/Mac/BuildScript/resources/install_certificates.command @@ -1,4 +1,7 @@ #!/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_VIRTUALENV /Library/Frameworks/Python.framework/Versions/@PYVER@/bin/python@PYVER@ << "EOF" From 96e595fd721205bfef78612b8dbc59681da8b09e Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 12 Oct 2026 13:24:53 +0800 Subject: [PATCH 2/2] Add PIP_REQUIRE_VENV handling as well. --- Mac/BuildScript/resources/install_certificates.command | 1 + 1 file changed, 1 insertion(+) diff --git a/Mac/BuildScript/resources/install_certificates.command b/Mac/BuildScript/resources/install_certificates.command index 20ff15915106d06..aa44961da7f4680 100755 --- a/Mac/BuildScript/resources/install_certificates.command +++ b/Mac/BuildScript/resources/install_certificates.command @@ -1,6 +1,7 @@ #!/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"