This commit is contained in:
Reinier Criel 2025-11-12 14:01:06 -08:00
parent 285906ea9d
commit fbd11c6d44

View file

@ -25,12 +25,13 @@ export async function runPip(command, args) {
env.REQUESTS_CA_BUNDLE = combinedCaPath;
}
// https://pip.pypa.io/en/stable/topics/https-certificates/ explains that the --cert option (which we're providing via both INI and PIP_CERT)
// Testing has shown that REQUESTS_CA_BUNDLE alone is not sufficient; PIP_CERT, SSL_CERT_FILE, or pip config cert is also needed in some cases.
if (!env.SSL_CERT_FILE) {
env.SSL_CERT_FILE = combinedCaPath;
}
// https://pip.pypa.io/en/stable/topics/https-certificates/ explains that the --cert option (which we're providing via both INI and PIP_CERT)
// is necessary for pip to use custom certs for later versions.
if (!env.PIP_CERT) {
env.PIP_CERT = combinedCaPath;
}