I’m working on a django app (django-flux) and I’m trying to get it to properly install with pip from pypi. From this blog post and the distutils documentation, it seems like my setup.py and MANIFEST.in files should be including the flux/templates/flux/*.html data files, for example, but they are not included when I install the app via pip for some reason.
Any suggestion on what I am doing wrong? How can you install django templates (among other non-python files)?
For reference, I have distutils 2.7.3.
You are missing
include_package_data=Truein your setup function.For more information on this you could turn to Flask’s excellent documentation which covers writing a Basic Setup Script:
Then your are importing
find_packagesbut aren’t using it so far (packages = find_packages())