15 Sep
2005
15 Sep
'05
5:55 p.m.
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