[Distutils] recursive package_data (setuptools?)

Ian Bicking ianb at colorstudy.com
Fri Sep 16 00:55:26 CEST 2005

I have a nested directory with templates, like


I thought I could include them in a package with:

       'mypackage': ['templates/*']})

But it doesn't work -- while the package is fine, when installed 
setuptools (maybe just inheriting distutils here) tries to copy 
templates/admin over, and it can't copy a directory.  And, I assume, it 
won't even try templates/admin/bar.pt.

So... is there a way to do this, without enumerating (a) every 
subdirectory I'm interested in, and (b) every extension I'm intersted in?

Ian Bicking  /  ianb at colorstudy.com  /  http://blog.ianbicking.org

More information about the Distutils-SIG mailing list