Fixed #28181 -- Added detection for GDAL 2.1 and 2.0.

Follow up to:
ffdf507ec0 (adding GDAL 2.0 support)
ebaa2fef27 (confirming GDAL 2.1 support)
8c7778884b (removing GDAL 1.8, 1.7 support)
This commit is contained in:
Tim Graham 2017-05-08 10:59:16 -04:00 committed by GitHub
parent 5df0ff4155
commit a404f75f92
2 changed files with 4 additions and 3 deletions

View File

@ -21,10 +21,10 @@ if lib_path:
lib_names = None lib_names = None
elif os.name == 'nt': elif os.name == 'nt':
# Windows NT shared libraries # Windows NT shared libraries
lib_names = ['gdal111', 'gdal110', 'gdal19', 'gdal18', 'gdal17'] lib_names = ['gdal21', 'gdal20', 'gdal111', 'gdal110', 'gdal19']
elif os.name == 'posix': elif os.name == 'posix':
# *NIX library names. # *NIX library names.
lib_names = ['gdal', 'GDAL', 'gdal1.11.0', 'gdal1.10.0', 'gdal1.9.0', 'gdal1.8.0', 'gdal1.7.0'] lib_names = ['gdal', 'GDAL', 'gdal2.1.0', 'gdal2.0.0', 'gdal1.11.0', 'gdal1.10.0', 'gdal1.9.0']
else: else:
raise GDALException('Unsupported OS "%s"' % os.name) raise GDALException('Unsupported OS "%s"' % os.name)

View File

@ -9,4 +9,5 @@ Django 1.11.2 fixes several bugs in 1.11.1.
Bugfixes Bugfixes
======== ========
* ... * Added detection for GDAL 2.1 and 2.0, and removed detection for unsupported
versions 1.7 and 1.8 (:ticket:`28181`).