From c953f188dde3211af31b7eb1a9e83536ef4c6d02 Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Fri, 22 Jun 2007 01:25:09 +0000 Subject: [PATCH] gis: added support for Solaris git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5510 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/gis/gdal/libgdal.py | 4 ++-- django/contrib/gis/geos/GEOSGeometry.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py index 151823731c..76cca40de9 100644 --- a/django/contrib/gis/gdal/libgdal.py +++ b/django/contrib/gis/gdal/libgdal.py @@ -7,8 +7,8 @@ if os.name == 'nt': lib_name = 'libgdal-1.dll' elif os.name == 'posix': platform = os.uname()[0] - if platform == 'Linux': - # Linux shared library + if platform in ('Linux', 'SunOS'): + # Linux or Solaris shared library lib_name = 'libgdal.so' elif platform == 'Darwin': # Mac OSX shared library diff --git a/django/contrib/gis/geos/GEOSGeometry.py b/django/contrib/gis/geos/GEOSGeometry.py index e5b529c431..e710e228d3 100644 --- a/django/contrib/gis/geos/GEOSGeometry.py +++ b/django/contrib/gis/geos/GEOSGeometry.py @@ -72,8 +72,8 @@ if os.name == 'nt': lib_name = 'libgeos_c-1.dll' elif os.name == 'posix': platform = os.uname()[0] # Using os.uname() - if platform == 'Linux': - # Linux shared library + if platform in ('Linux', 'SunOS'): + # Linux or Solaris shared library lib_name = 'libgeos_c.so' elif platform == 'Darwin': # Mac OSX Shared Library (Thanks Matt!)