biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / django / django_3_set_geos_gdal_lib.patch
bloba7dfa086a0a713aa054b6ff09677f1d4f910eb66
1 diff -Nur a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py
2 --- a/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:34:05.330568948 +0100
3 +++ b/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:35:08.679095615 +0100
4 @@ -14,7 +14,7 @@
5 from django.conf import settings
6 lib_path = settings.GDAL_LIBRARY_PATH
7 except (AttributeError, ImportError, ImproperlyConfigured, OSError):
8 - lib_path = None
9 + lib_path = "@gdal@/lib/libgdal@extension@"
11 if lib_path:
12 lib_names = None
13 diff -Nur a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py
14 --- a/django/contrib/gis/geos/libgeos.py 2020-07-09 22:34:05.331568941 +0100
15 +++ b/django/contrib/gis/geos/libgeos.py 2020-07-09 22:36:24.863526276 +0100
16 @@ -24,7 +24,7 @@
17 from django.conf import settings
18 lib_path = settings.GEOS_LIBRARY_PATH
19 except (AttributeError, ImportError, ImproperlyConfigured, OSError):
20 - lib_path = None
21 + lib_path = "@geos_3_9@/lib/libgeos_c@extension@"
23 # Setting the appropriate names for the GEOS-C library.
24 if lib_path: