ckan / ckanext-mapviews

CKAN Resource View to build maps and choropleth maps
26 stars 23 forks source link

python setup.py install doesn't work #25

Closed vitorbaptista closed 10 years ago

vitorbaptista commented 10 years ago

As noted by @marks in https://github.com/ckan/ckanext-mapviews/issues/22#issuecomment-39867792, you'd get "TemplateNotFound" when trying to run ckanext-mapviews when installing it through python setup.py install. Everything works fine if you run python setup.py develop.

This is probably because we're missing package_data in our setup.py. We must add the templates (and maybe something more) to it, so python knows what to copy from the source when installing the extension.

To learn how it works (and what needs to be done), check https://docs.python.org/2/distutils/setupscript.html#installing-package-data.