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

python_package is downgrading wheel installed by poise-python? #105

Open
dragon788 opened this issue Mar 7, 2018 · 2 comments
Open

python_package is downgrading wheel installed by poise-python? #105

dragon788 opened this issue Mar 7, 2018 · 2 comments

Comments

@dragon788
Copy link

dragon788 commented Mar 7, 2018

Oddly when changing our recipe to do a fresh install of pex 1.28 instead of 1.26 our ami_spec tests started failing. After flailing around for a while (the ami_spec output is terrible) I finally discovered that the version of wheel that was getting installed somehow ended up as 0.29.0 instead of the 0.30.0 requested.

python_runtime '2' do
  pip_version true
  setuptools_version true
  virtualenv_version '15.1.0'
  wheel_version '0.30.0'
end

python_package 'pex' do
  version '1.2.8'
end

# At this point the unit tests asserting `pex==1.28` pass, but `wheel==0.30.0` fails.
# This is what I added based on issue #62's suggestion and it *works* but is painful
python_package 'wheel' do
  version '0.30.0'
  action :upgrade
end

I'm not sure how/why it is getting downgraded, but it seems like the version we specified either never gets installed or gets dragged down which doesn't seem like how pip is supposed to behave either, if the requirement is there is should use the existing not perform a downgrade.

@coderanger
Copy link
Member

Please include a debug log from Chef, which shows what actual commands got run, that should help track things down.

@dragon788
Copy link
Author

I think I figured out the issue, we've pulled in python_runtime '2' a few places in our cookbooks, and one of the other instances had wheel_version true rather than a specific version, resulting in any checks that only look for the existence and not the version to pass. I'll dig in a little more and see if I can confirm that.

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

2 participants