Skip to content

Commit

Permalink
Merge pull request #658 from QuLogic/proj-conda-version-check
Browse files Browse the repository at this point in the history
BLD: Check proj version when building in conda.
  • Loading branch information
pelson committed Aug 26, 2015
2 parents 3dd331f + fbd2150 commit d6c4312
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ def find_proj_version_by_program(conda=None):
# should be set up so that nothing extra is required. We'll still check
# the version, though.
proj_version = find_proj_version_by_program(conda)
if proj_version < PROJ_MIN_VERSION:
print(
'Proj4 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)),
file=sys.stderr)
exit(1)

proj_includes = []
proj_libraries = ['proj']
Expand Down

0 comments on commit d6c4312

Please sign in to comment.