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:

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

and then a plain sdist works fine again:

python2.4 setup.py sdist

Thanks!

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

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to