Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

python_package performs superfluous requests to package index #136

Open
wosc opened this issue Nov 6, 2018 · 0 comments
Open

python_package performs superfluous requests to package index #136

wosc opened this issue Nov 6, 2018 · 0 comments

Comments

@wosc
Copy link

wosc commented Nov 6, 2018

I've stumbled across some suprising behaviour. Given a declaration like this

python_virtualenv "/opt/something"

python_package "mypackage" do
  version "1.2.3"
  options "--index=https://devpi.example.com"
end

I've had chef runs fail when our local devpi was down, even though mypackage==1.2.3 was already installed(!). So it seems to me that the pip_outdated/PIP_HACK_SCRIPT call somehow always wants to talk to the package index, regardless of what the local installation state is (and whether an explicit target version is specified, which makes the whole "check for outdated" gesture superfluous anyway). This seems rather wrong to me, however I'm not versed enough in pip internals to even make a suggestion where this behaviour comes from or what could be done to improve it. Any ideas? Thanks for your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant