[Distutils] setuptools 0.6b4 released

Andrew Straw strawman at astraw.com
Fri Jul 21 20:20:23 CEST 2006

Phillip J. Eby wrote:
> At 02:49 PM 7/17/2006 -0700, Bob Ippolito wrote:
>> That's not a bad idea (update setup.cfg on sdist w/ --no-svn- revision). 
>> Any chance of getting this in setuptools 0.6 or should I
>> start adding MANIFEST.in files to the relevant projects?
> Okay, it's in the trunk now as of 0.7a1dev-r50702 and 0.6c1dev-r50703.  It 
> even handles date and SVN revision tags correctly, by converting them to a 
> single --tag-build string and disabling the other tagging options.  So if 
> you just build from an sdist without doing anything special, you get the 
> exact same version the sdist was built with, regardless of how the version 
> was originally specified.
I'm glad this is being worked on. But a related issue is still biting me
with setuptools 0.6c1 in my stdeb package (which builds debian source
packages from unmodified setup.py scripts) :

Any distutils commands using "self.distribution.get_version()" still get
tagged (at least with the svn revision), even if they're being built
from the sdist-generated .tar.gz package.

Not knowing the innards of setuptools very well, one idea would be to
add something to the .egg-info built by sdist that tells future runs of
setuptools not to add tags. This keeps setup.cfg from getting modified
but still has the right effect. There's probably a flaw I haven't
thought of, though...


More information about the Distutils-SIG mailing list