Changeset 8701
- Timestamp:
- Feb 15, 2013, 3:24:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/utilities/compile.py
r8700 r8701 11 11 """ 12 12 13 14 15 import os, string, sys 16 17 NETCDF_LIB_DIR = os.getenv('NETCDF_LIB_DIR', '') 18 NETCDF_INCLUDE_DIR = os.getenv('NETCDF_INCLUDE_DIR', '') 19 20 #print 'NETCDF_LIB_DIR: ',NETCDF_LIB_DIR 21 #print 'NETCDF_INCLUDE_DIR: ',NETCDF_INCLUDE_DIR 22 23 I_dirs = '' 24 if NETCDF_INCLUDE_DIR != '' : 25 I_dirs = '-I"%s" ' % NETCDF_INCLUDE_DIR 26 27 netcdf_lib_dirs = '' 28 if NETCDF_LIB_DIR != '' : 29 netcdf_lib_dirs = '-L"%s" ' % NETCDF_LIB_DIR 30 13 31 #NumPy ------------------------------------ 14 32 # Something like these lines recommended in "Converting from NUMARRAY to NUMPY" 15 33 import numpy 16 I_dirs = '-I"%s" ' % numpy.get_include()34 I_dirs = I_dirs + '-I"%s" ' % numpy.get_include() 17 35 #NumPy ------------------------------------ 18 36 … … 20 38 # it has only really been used with gcc. 21 39 22 import os, string, sys23 24 NETCDF_LIB_DIR = os.getenv('NETCDF_LIB_DIR', '')25 NETCDF_INCLUDE_DIR = os.getenv('NETCDF_INCLUDE_DIR', '')26 27 print 'NETCDF_LIB_DIR ',NETCDF_LIB_DIR28 print 'NETCDF_INCLUDE_DIR ',NETCDF_INCLUDE_DIR29 40 30 41 separation_line = '---------------------------------------' … … 305 316 raise Exception('Could not compile %s - please try manually' %FN) 306 317 307 318 319 320 libs = libs + netcdf_lib_dirs 321 308 322 # Make shared library (*.so or *.dll) 309 323 if FN=="fitsmooth.c": 324 libs = libs + netcdf_lib_dirs 310 325 if sys.platform == 'win32': 311 326 if libs is "":
Note: See TracChangeset
for help on using the changeset viewer.