I noticed the strange behavior of setuptools / distutils (I'm not even sure which of these two functions belongs):
$ ./setup.py egg_info -b 0613001 sdist
The above command creates this file:
dist/Foo-2.0.dev613001.tar.gz
Note the missing leading 0 in the file name. This only happens with pure numbers, as if Python were passing an int if and when it was possible.
This randomly broke part of my build scripts that generate packages based on the git version and expect the same identifier later. A simple fix is ββto prefix it with a string, for example. r0613001 .
The version of Setuptools is currently 21.0.0.
Is this a bug that should be reported? If so, where?
source share