setup.py and MANIFEST.in - duplicating inclusion of files?

A

Aljosa Mohorovic

the only way i can get to distribute template files when using "python
setup.py sdist" is to declare it both in setup.py and MANIFEST.in.

setup.py:
package_data={'myapp':['templates/*.html', 'templates/admin/*.html'],}
MANIFEST.in:
recursive-include myapp/templates *.html

am i doing something wrong or is this correct? if it's correct, why?

Aljosa Mohorovic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top