python and PEP 440 - how serious is this warning about PEP440?

Mark picture Mark · Dec 15, 2014 · Viewed 7.4k times · Source

I had to install OpenStack using devstack infrastructure for experiements with open vSwitch, and found this in the logs:

/usr/lib/python2.7/site-packages/setuptools/dist.py:298: UserWarning: The version specified ('2014.2.2.dev5.gb329598') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.

I googled and found that PEP stands for Python Enhancement Proposal and PEP 440 is obviously a particular proposal, but I wonder how serious this warning is and what is PEP 440 defining?

Answer

SingleNegationElimination picture SingleNegationElimination · Dec 15, 2014

As an end user, this shouldn't be a serious concern for you, it just means that, since the version number specified doesn't agree with the rules for python package versions, that the python packaging system cannot reliably discern which other versions of this package are before or after it.

In particular, its not specified if 2014.2.2.dev5.g... should come before or after 2014.2.2.dev5, since the rules don't say anything about what g is supposed to mean.

this is not likely to affect you too much; since either are going to be dev releases; and both strictly are between 2014.2.1 and 2014.2.2