Skip to content
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

FIX: setup.py should output "... 8.0.0 *or later*" if proj is missing or too old #1992

Merged

Conversation

weatherfrog
Copy link
Contributor

Rationale

When trying to install CartoPy with proj missing, this is the error message you get:

Proj 8.0.0 must be installed.

This is misleading since the docs say "PROJ 8.0.0 or later". Therefore, the error message should be updated accordingly.

Implications

No negative implications expected.

setup.py Outdated
'Proj version %s is installed, but cartopy requires at least '
'version %s.' % ('.'.join(str(v) for v in proj_version),
'.'.join(str(v) for v in PROJ_MIN_VERSION)),
f'Proj version {proj_version_string} is installed, but cartopy requires '

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (85 > 79 characters)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, fixed in 2nd commit

@SciTools-assistant SciTools-assistant added the Blocked: CLA needed See https://scitools.org.uk. Submit the form at: https://scitools.org.uk/cla/v4/form label Jan 22, 2022
@weatherfrog weatherfrog force-pushed the fix-setup.py-proj-version-error-messages branch from f292219 to 5e9e0c4 Compare January 22, 2022 20:55
@weatherfrog
Copy link
Contributor Author

One single test failed on "ubuntu-latest, 3.9". It seems unlikely that this has anything to do with the changes made to setup.py.?

FAILED lib/cartopy/tests/mpl/test_examples.py::test_contour_label
= 1 failed, 747 passed, 22 skipped, 3 xfailed, 11 xpassed, 702 warnings in 102.72s (0:01:42) =

Anyone?

@greglucas
Copy link
Contributor

That test should be fixed now. If you rebase and force-push here it should pick that up and pass.

This seems fine, although I'm still hopeful we can get rid of the PROJ dependency altogether before the next release.

@greglucas greglucas merged commit 0af6163 into SciTools:main Jun 27, 2022
@QuLogic QuLogic added this to the 0.21 milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked: CLA needed See https://scitools.org.uk. Submit the form at: https://scitools.org.uk/cla/v4/form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants