Closed vitorbaptista closed 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.
python setup.py install
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.
package_data
setup.py
To learn how it works (and what needs to be done), check https://docs.python.org/2/distutils/setupscript.html#installing-package-data.
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 runpython setup.py develop
.This is probably because we're missing
package_data
in oursetup.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.