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

Tarek Ziadé ziade.tarek at gmail.com
Fri Sep 11 11:58:06 CEST 2009


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

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

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.

-- 
Tarek Ziadé | http://ziade.org | オープンソースの岩!


More information about the Distutils-SIG mailing list