I've had success with something like this: package_data = { '' : ["*.pt"]} Of course, if you have page templates in directories other than "templates", you'll end up snagging those, too. Kevin On 9/15/05, Ian Bicking <ianb@colorstudy.com> wrote:
I have a nested directory with templates, like
templates/foo.pt templates/admin/bar.pt
I thought I could include them in a package with:
setup(... package_data={ '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@colorstudy.com / http://blog.ianbicking.org _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig