Fixed #31662 -- Added detection for GDAL 3.0 and 3.1 on Windows.

This commit is contained in:
David Smith 2020-06-04 20:40:26 +01:00 committed by Mariusz Felisiak
parent b38d44229f
commit 4652f1f0aa
1 changed files with 6 additions and 2 deletions

View File

@ -20,10 +20,14 @@ if lib_path:
lib_names = None
elif os.name == 'nt':
# Windows NT shared libraries
lib_names = ['gdal204', 'gdal203', 'gdal202', 'gdal201', 'gdal20']
lib_names = ['gdal301', 'gdal300', 'gdal204', 'gdal203', 'gdal202', 'gdal201', 'gdal20']
elif os.name == 'posix':
# *NIX library names.
lib_names = ['gdal', 'GDAL', 'gdal2.4.0', 'gdal2.3.0', 'gdal2.2.0', 'gdal2.1.0', 'gdal2.0.0']
lib_names = [
'gdal', 'GDAL',
'gdal3.1.0', 'gdal3.0.0',
'gdal2.4.0', 'gdal2.3.0', 'gdal2.2.0', 'gdal2.1.0', 'gdal2.0.0',
]
else:
raise ImproperlyConfigured('GDAL is unsupported on OS "%s".' % os.name)