mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Cleanup
This commit is contained in:
parent
6bcd3d3b8f
commit
a3d57cbd24
1 changed files with 2 additions and 4 deletions
|
|
@ -24,18 +24,16 @@ export async function runPip(command, args) {
|
||||||
if (!env.REQUESTS_CA_BUNDLE) {
|
if (!env.REQUESTS_CA_BUNDLE) {
|
||||||
env.REQUESTS_CA_BUNDLE = combinedCaPath;
|
env.REQUESTS_CA_BUNDLE = combinedCaPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!env.SSL_CERT_FILE) {
|
if (!env.SSL_CERT_FILE) {
|
||||||
env.SSL_CERT_FILE = combinedCaPath;
|
env.SSL_CERT_FILE = combinedCaPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
// To counter behavior that is sometimes seen where pip ignores REQUESTS_CA_BUNDLE/SSL_CERT_FILE,
|
// To counter behavior that is sometimes seen where pip ignores REQUESTS_CA_BUNDLE/SSL_CERT_FILE,
|
||||||
// We will set additional env vars for pip
|
// We will set additional env vars for pip
|
||||||
|
|
||||||
if (!env.PIP_CERT) {
|
if (!env.PIP_CERT) {
|
||||||
env.PIP_CERT = combinedCaPath;
|
env.PIP_CERT = combinedCaPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only create and set PIP_CONFIG_FILE if not already set
|
|
||||||
if (!env.PIP_CONFIG_FILE) {
|
if (!env.PIP_CONFIG_FILE) {
|
||||||
const tmpDir = os.tmpdir();
|
const tmpDir = os.tmpdir();
|
||||||
const pipConfigPath = path.join(tmpDir, `safe-chain-pip-${Date.now()}.ini`);
|
const pipConfigPath = path.join(tmpDir, `safe-chain-pip-${Date.now()}.ini`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue