[Distutils] distutils' sdist won't allow me to include a file called buildout.cfg in my source distribution

Chris Withers chris at simplistix.co.uk
Fri Sep 11 12:02:50 CEST 2009


Tarek Ziadé wrote:
> On Fri, Sep 11, 2009 at 11:53 AM, Chris Withers <chris at simplistix.co.uk> wrote:
>> ...which is kinda annoying :-(
>>
>> The problem is, in Python 2.6.2, line 357 of sdist.py.
>>
>> This ends up applying the following:
>>
>> exclude_pattern: applying regex r'^build\.*'
>>
>> ...which of course chomps buildout.cfg, with no possibility to add it back
>> in MANIFEST.in :-(
> 
> You can disable the prune option with --no-prune

To what? the sdist command? Can I put that in setup.cfg somewhere?

> you can also uset the the MANIFEST.in template file to define
> what's in your distribution.

My MANIFEST.in currently contains:

include *

> That's for distutils. Beware that if you use Subversion and setuptools,
> it doesn't work the same way depending on what you've included
> in your repo, but at the end MANIFEST.in has the last word if you use it.

I've tried with distutils, setuptools and distribute. All exhibit the 
same behaviour...

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk


More information about the Distutils-SIG mailing list