[Distutils] request: make versions which include svn revision numbers look the same with distutils and with setuptools

Phillip J. Eby pje at telecommunity.com
Tue Mar 4 20:04:23 CET 2008


At 10:28 AM 3/4/2008 -0700, zooko wrote:
>So with the patch that I've offered to Nevow, if you run "./setup.py
>sdist" without setuptools installed, you get:
>
>Nevow-0.9.31+r15049.tar.gz
>
>and if you run "./setup.py sdist" with setuptools installed, you get:
>
>Nevow-0.9.31-r15049.tar.gz
>
>Why are the version numbers different?

Because setuptools treats all runs of characters other than 
[-.A-Za-z0-9] as equal to a single '-', and canonicalizes both 
project and version names accordingly.



More information about the Distutils-SIG mailing list