[Distutils] setup script not found when directory name is 100 characters

Maurits van Rees m.van.rees at zestsoftware.nl
Wed Sep 3 11:39:23 CEST 2008

Marius Gedminas, on 2008-09-02:
> On Tue, Sep 02, 2008 at 09:26:26PM +0000, Maurits van Rees wrote:
>> Marius Gedminas, on 2008-09-02:
>> > Which Python version is this?  I seem to remember some bug in stdlib's
>> > tarfile module that couldn't handle paths longer than 100 characters.
>> Ah right, tarfile is the culprit.  I am using python2.4.  And one of
>> the bug reports you pasted mentioned that python2.4 is not maintained
>> anymore.
>> So I guess the possible workarounds are:
>> - Make a .egg instead of a .tar.gz for my package.
> .egg is a binary distribution; what you probably want is a .zip source
> distribution.

Ah, right, you can give options to sdist.  This indeed works fine:

python2.4 setup.py sdist --formats=zip

Or this can be put in setup.cfg:

# guard against tarfile bug by using the zip format
formats = zip

and then a plain sdist works fine again:

python2.4 setup.py sdist


Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]

More information about the Distutils-SIG mailing list