[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 12:01:19 CEST 2009
On Fri, Sep 11, 2009 at 11:58 AM, Tarek Ziadé <ziade.tarek at gmail.com> 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
>
> you can also uset the the MANIFEST.in template file to define
> what's in your distribution.
>
Let me add an example :
"""
include buildout.cfg
include README.txt
recursive-include src *.py
"""
More information about the Distutils-SIG
mailing list