mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
Merge pull request #252 from mapbox/setup-proj-lib
Find PROJ data using PROJ_LIB env var.
This commit is contained in:
commit
3b8e1c7e9d
5
setup.py
5
setup.py
@ -92,10 +92,9 @@ try:
|
||||
except Exception as e:
|
||||
log.warning("Failed to get options via gdal-config: %s", str(e))
|
||||
|
||||
# Conditionally copy PROJ.4 data. Presumes PROJ.4 is installed locally
|
||||
# with --prefix=/usr/local.
|
||||
# Conditionally copy PROJ.4 data.
|
||||
if os.environ.get('PACKAGE_DATA'):
|
||||
projdatadir = '/usr/local/share/proj'
|
||||
projdatadir = os.environ.get('PROJ_LIB', '/usr/local/share/proj')
|
||||
if os.path.exists(projdatadir):
|
||||
try:
|
||||
shutil.rmtree('rasterio/proj_data')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user