I am writing a program which uses Jinja2. I use PackageLoader - a template loader which looks for templates inside Python packages. I am distributing my program with distutils. How can I make distutils install template files inside python packages, together with modules? I tried writing in setup.py something like that:
packages=['myapp.mypackage', 'myapp.templates']
but id does not work - only files with .py extension which are inside myapp.templates gets installed, but templates, which have .html extension, do not.