fix: add support for http_proxy and https_proxy

This commit is contained in:
Ruben Fiszel
2023-06-09 19:14:02 +02:00
parent 61cde59011
commit 3d8c97c154
5 changed files with 16 additions and 10 deletions

View File

@@ -19,6 +19,7 @@ lazy_static::lazy_static! {
static ref PYTHON_PATH: String =
std::env::var("PYTHON_PATH").unwrap_or_else(|_| "/usr/local/bin/python3".to_string());
static ref PIP_INDEX_URL: Option<String> = std::env::var("PIP_INDEX_URL").ok();
static ref PIP_EXTRA_INDEX_URL: Option<String> = std::env::var("PIP_EXTRA_INDEX_URL").ok();
static ref PIP_TRUSTED_HOST: Option<String> = std::env::var("PIP_TRUSTED_HOST").ok();