pip state: proxy not supported when using bin_env
Installing a pip package behind a proxy works fine. However, when specifying a bin_env, the proxy seems to be ignored.
buildbot/master.sls
buildbot_master_venv:
virtualenv.managed:
- name: /opt/buildbot/venv
buildbot:
pip.installed:
- proxy: {{pillar['http_proxy']}}
- bin_env: /opt/buildbot/venv/bin/pip
Calling state.highstate for a Ubuntu host gives
----------
State: - pip
Name: buildbot
Function: installed
Result: False
Comment: Failed to install package buildbot. Error: Downloading/unpacking buildbot
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement buildbot
No distributions at all found for buildbot
Storing complete log in /root/.pip/pip.log
Changes:
Thanks for pointing this out. I'm guessing that edge case just wasn't handled properly for the bin_env case.
I'm running into the same issue. Hasn't this issue already been resolved?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
@saltstack/team-triage
Thank you for updating this issue. It is no longer marked as stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.