[Distutils] including an empty directory

Jorge Vargas jorge.vargas at gmail.com
Sun Jan 25 10:07:12 CET 2009


FYI, this is a know bug/limitation I never bother to look much into it
as we simply add a placeholder file.

On Sat, Jan 24, 2009 at 7:39 PM, Domen Kožar <iElectric at gmail.com> wrote:
> Usage is to dispatch Paste templates http://pythonpaste.org/script/developer.html#templates.
>
> And the dir must be empty, for some reasons.
>
> So this distutils syntax does not work (interesting though, as it does
> create the dir in the egg, it's just not copied)
>
> On Jan 25, 12:18 am, Tarek Ziadé <ziade.ta... at gmail.com> wrote:
>> I don't know on setuptools side, but in distutils, I don't think
>> there's any way to include an empty directory
>> like this, even with a graft in the MANIFEST.in file.
>>
>> The commands are looking for files to include, then create the
>> necessary directories in the distribution, to include those files
>>
>> Can't you add a README.txt file in that directory ?
>>
>> What is the use case to include an empty directory in a release ?
>>
>> Regards
>> Tarek
>>
>> On Sat, Jan 24, 2009 at 2:40 AM, Domen Kožar <iElect... at gmail.com> wrote:
>> > I'm having issues to include an empty directory to setuptools package.
>>
>> >      package_data={'data':['templates/*tmpl']}
>>
>> > this includes all the files, but there is data/templates/Test
>> > directory that is empty and there is no way of globing it.
>> > _______________________________________________
>> > Distutils-SIG maillist  -  Distutils-... at python.org
>> >http://mail.python.org/mailman/listinfo/distutils-sig
>>
>> --
>> Tarek Ziadé | Association AfPy |www.afpy.org
>> Blog FR |http://programmation-python.org
>> Blog EN |http://tarekziade.wordpress.com/
>> _______________________________________________
>> Distutils-SIG maillist  -  Distutils-... at python.orghttp://mail.python.org/mailman/listinfo/distutils-sig
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>


More information about the Distutils-SIG mailing list