Skip to content

Commit 72062c1

Browse files
committed
pass common proxy env vars to recipe env to fix pip build issues on corporate networks
1 parent ceed049 commit 72062c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pythonforandroid/recipe.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,11 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True):
526526
if arch is None:
527527
arch = self.filtered_archs[0]
528528
env = arch.get_env(with_flags_in_cc=with_flags_in_cc)
529+
530+
for proxy_key in ['HTTP_PROXY', 'http_proxy', 'HTTPS_PROXY', 'https_proxy']:
531+
if proxy_key in environ:
532+
env[proxy_key] = environ[proxy_key]
533+
529534
return env
530535

531536
def prebuild_arch(self, arch):

0 commit comments

Comments
 (0)