From 2eec7524a131c1990d608b1e8b1d01a2b8970b76 Mon Sep 17 00:00:00 2001 From: Sean Gillies Date: Fri, 16 Jan 2015 12:35:59 -0700 Subject: [PATCH] Find PROJ data using PROJ_LIB env var. --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index dc9a7eb0..245f9c6a 100755 --- a/setup.py +++ b/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')