Skip to content

Commit

Permalink
override GDAL_LIBRARY_PATH in local.py
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardchalstrey1 committed Jul 16, 2024
1 parent c798ec3 commit 02541d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions seshat/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,7 @@
GDAL_LIBRARY_PATH = '/usr/lib/libgdal.so'
GEOS_LIBRARY_PATH = '/usr/lib/x86_64-linux-gnu/libgeos_c.so'
else:
GDAL_LIBRARY_PATH = '/usr/lib/libgdal.so' # Test site setting
# GDAL_LIBRARY_PATH = '/usr/lib/libgdal.so.30' # Production site setting
GDAL_LIBRARY_PATH = '/usr/lib/libgdal.so.30'
# TODO: find a way to specify this based on the VM: aarch64 or x86_64
# GEOS_LIBRARY_PATH = '/usr/lib/aarch64-linux-gnu/libgeos_c.so'
GEOS_LIBRARY_PATH = '/usr/lib/x86_64-linux-gnu/libgeos_c.so'
Expand Down
5 changes: 4 additions & 1 deletion seshat/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,7 @@
Specifies static files storage for testing environments.
:noindex:
"""
"""

if not sys.platform.startswith('darwin'): # macOS
GDAL_LIBRARY_PATH = '/usr/lib/libgdal.so' # Linux (this overrides the path in base.py used by the production environment)

0 comments on commit 02541d5

Please sign in to comment.