[Distutils] including an empty directory

Tarek Ziadé ziade.tarek at gmail.com
Sun Jan 25 00:18:05 CET 2009


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 <iElectric 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-SIG 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/


More information about the Distutils-SIG mailing list