mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[3.1.x] Fixed #31662 -- Added detection for GDAL 3.0 and 3.1 on Windows.
Backport of 4652f1f0aa from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							83749dca7a
						
					
				
				
					commit
					1ac45e619d
				
			| @@ -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) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user