Skip to content

Instantly share code, notes, and snippets.

@odyssey4me
Last active November 24, 2016 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odyssey4me/d8acc9888cc206818e21e059f28b3576 to your computer and use it in GitHub Desktop.
Save odyssey4me/d8acc9888cc206818e21e059f28b3576 to your computer and use it in GitHub Desktop.
pip wheel does not respect requirements when given constraints - it appears to take the packages to build from requirements.txt, but ignores the version spec in requirements.txt and uses the one in constraints.txt
setuptools<=25.1.3
setuptools==25.1.1
root@master1:~# pip wheel -r requirements.txt -c constraints.txt
Collecting setuptools<=25.1.3 (from -c constraints.txt (line 1))
Downloading setuptools-25.1.3-py2.py3-none-any.whl (442kB)
100% |████████████████████████████████| 450kB 2.1MB/s
Saved ./setuptools-25.1.3-py2.py3-none-any.whl
Skipping setuptools, due to already being wheel.
@tbreeds
Copy link

tbreeds commented Nov 24, 2016

That's working as designed. The list of packages to install comes from walking the requirements graph and the version of each package comes from the constraints file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment