Skip to content

Commit

Permalink
Update setup.py to allow building against GDAL master (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Apr 21, 2022
1 parent 58534cd commit 4f81551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_gdal_paths():
gdal_config = os.environ.get("GDAL_CONFIG", "gdal-config")
config = {flag: read_response([gdal_config, f"--{flag}"]) for flag in flags}

gdal_version = tuple(int(i) for i in config["version"].split("."))
gdal_version = tuple(int(i) for i in config["version"].strip("dev").split("."))
if not gdal_version >= MIN_GDAL_VERSION:
sys.exit("GDAL must be >= 2.4.x")

Expand Down

0 comments on commit 4f81551

Please sign in to comment.