ports/math/py-scientific/files/patch-setup.py
Thomas Gellekum c144127884 Upgrade to 2.4.9.
PR:		93808
Submitted by:	"Pedro F. Giffuni" <giffunip at asme dot org>
2006-03-15 08:23:17 +00:00

11 lines
506 B
Python

--- setup.py.orig Mon Oct 18 08:34:00 2004
+++ setup.py Fri Feb 24 15:33:58 2006
@@ -14,7 +14,7 @@
try:
netcdf_prefix=os.environ['NETCDF_PREFIX']
except KeyError:
- for netcdf_prefix in ['/usr/local', '/usr', '/sw']:
+ for netcdf_prefix in [sys.prefix, '/usr', '/sw']:
netcdf_include = os.path.join(netcdf_prefix, 'include')
netcdf_lib = os.path.join(netcdf_prefix, 'lib')
if os.path.exists(os.path.join(netcdf_include, 'netcdf.h')):