Great. We're gonna hopefully release pip 6 this week.
On Dec 15, 2014, at 5:27 PM, Maurits van Rees
wrote: Donald Stufft schreef op 15-12-14 18:26:
On Dec 15, 2014, at 9:05 AM, Maurits van Rees
wrote: But I now run into unexpected behaviour when two packages have a constraint on the same third package. For example one has 'zest.releaser==3.50' and another has 'zest.releaser>=3.40'. Wanted and expected behaviour is to get 3.50, as that satisfies both constraints.
You can test this in a virtualenv with setuptools 8.0.2:
$ pip install 'zest.releaser==3.50,>=3.40' Downloading/unpacking zest.releaser>=3.40,==3.50 Downloading zest.releaser-3.53.2.zip ...
So expected is 3.50, but you get the latest version, currently 3.53.2. Sound like a bug?
Try with the develop version of pip. pip bundles setuptools internally in order to prevent issues from setuptools accidentally getting uninstalled breaking pip and such,
Ah, that works. Thanks.
(venv)mauritsvanrees@procyon:venv $ pip install https://github.com/pypa/pip/tarball/develop#egg=pip-dev Downloading/unpacking pip-dev from https://github.com/pypa/pip/tarball/develop ... Successfully installed pip-dev Cleaning up... (venv)mauritsvanrees@procyon:venv $ pip --version pip 6.0.dev1 from /Users/mauritsvanrees/tmp/venv/lib/python2.7/site-packages (python 2.7) (venv)mauritsvanrees@procyon:venv $ pip install 'zest.releaser==3.50,>=3.40' Collecting zest.releaser==3.50,>=3.40 Downloading zest.releaser-3.50.zip (124kB) 100% |################################| 126kB 1.1MB/s Requirement already satisfied (use --upgrade to upgrade): setuptools in ./lib/python2.7/site-packages (from zest.releaser==3.50,>=3.40) Installing collected packages: zest.releaser Found existing installation: zest.releaser 3.53.2 Uninstalling zest.releaser: Successfully uninstalled zest.releaser Running setup.py install for zest.releaser Skipping installation of /Users/mauritsvanrees/tmp/venv/lib/python2.7/site-packages/zest/__init__.py (namespace package) Installing /Users/mauritsvanrees/tmp/venv/lib/python2.7/site-packages/zest.releaser-3.50-py2.7-nspkg.pth ... Successfully installed zest.releaser
-- Maurits van Rees: http://maurits.vanrees.org/ Zest Software: http://zestsoftware.nl
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig