mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
gis: added support for Solaris
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bdcc95e5cc
commit
c953f188dd
@ -7,8 +7,8 @@ if os.name == 'nt':
|
|||||||
lib_name = 'libgdal-1.dll'
|
lib_name = 'libgdal-1.dll'
|
||||||
elif os.name == 'posix':
|
elif os.name == 'posix':
|
||||||
platform = os.uname()[0]
|
platform = os.uname()[0]
|
||||||
if platform == 'Linux':
|
if platform in ('Linux', 'SunOS'):
|
||||||
# Linux shared library
|
# Linux or Solaris shared library
|
||||||
lib_name = 'libgdal.so'
|
lib_name = 'libgdal.so'
|
||||||
elif platform == 'Darwin':
|
elif platform == 'Darwin':
|
||||||
# Mac OSX shared library
|
# Mac OSX shared library
|
||||||
|
@ -72,8 +72,8 @@ if os.name == 'nt':
|
|||||||
lib_name = 'libgeos_c-1.dll'
|
lib_name = 'libgeos_c-1.dll'
|
||||||
elif os.name == 'posix':
|
elif os.name == 'posix':
|
||||||
platform = os.uname()[0] # Using os.uname()
|
platform = os.uname()[0] # Using os.uname()
|
||||||
if platform == 'Linux':
|
if platform in ('Linux', 'SunOS'):
|
||||||
# Linux shared library
|
# Linux or Solaris shared library
|
||||||
lib_name = 'libgeos_c.so'
|
lib_name = 'libgeos_c.so'
|
||||||
elif platform == 'Darwin':
|
elif platform == 'Darwin':
|
||||||
# Mac OSX Shared Library (Thanks Matt!)
|
# Mac OSX Shared Library (Thanks Matt!)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user