-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't use generic feature_download executable name #2227
Comments
I agree this is not super ideal. More generally, I wonder if we even want to install "cartopy_feature_download" as a script like this at all because I don't think it rises to the level of needing to be site-wide available as a script. Maybe we could move it into a function within the package somehow instead. Any other thoughts on this from anyone? |
An option would be to have it as code in a |
I think it used to be installed as |
It was, and installing it without the language extension is better. |
I think the current installation is actually broken? So a simple name change won't fix the underlying issue. It looks like setuptools expects scripts to be a part of the package, but we have put the script in a separate directory without an cartopy_feature_download gshhs physical --dry-run
/usr/bin/cartopy_feature_download", line 5, in <module>
from tools.cartopy_feature_download.py import __main__
ModuleNotFoundError: No module named 'tools' Note: we should switch CI to test the installed script instead of the direct path that we currently do with the dry-run if we do go this route to make sure we codify the expectation of how the script works. |
Oh, that's a good catch; probably should move to |
Description
Since 0.22.0
tools/cartopy_feature_download.py
gets installed as/usr/bin/feature_download
which is a far too generic name.The
cartopy_
prefix should be preserved as per this patch:Operating system
Debian unstable
Cartopy version
0.22.0
The text was updated successfully, but these errors were encountered: