Skip to content

Commit

Permalink
fix bootstrap.py with proxy (bioconda#15834)
Browse files Browse the repository at this point in the history
* pass env. variable https_proxy to the setup.sh call

* allow HTTPS_PROXY as well
  • Loading branch information
pirovc authored and epruesse committed Jun 14, 2019
1 parent 0073e43 commit 1b76732
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,15 @@ def _write_custom_activate(install_path):
if args.no_docker:
use_docker = "false"

env = {'WORKSPACE': args.bootstrap, 'BOOTSTRAP': "true", 'USE_DOCKER': use_docker, 'PATH': os.environ['PATH']}
env = {
'WORKSPACE': args.bootstrap,
'BOOTSTRAP': "true",
'USE_DOCKER': use_docker,
'PATH': os.environ['PATH'],
'HTTPS_PROXY': os.environ['HTTPS_PROXY'],
'https_proxy': os.environ['https_proxy']
}

sp.check_call(['.circleci/setup.sh'], env=env)
_write_custom_activate(args.bootstrap)

Expand Down

0 comments on commit 1b76732

Please sign in to comment.