Changeset 5891 for anuga_core/source/anuga/utilities/compile.py
- Timestamp:
- Nov 5, 2008, 4:19:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/compile.py
r5138 r5891 10 10 Ole Nielsen, Duncan Gray Oct 2001 11 11 """ 12 13 #NumPy ------------------------------------ 14 # Something like these lines recommended in "Converting from NUMARRAY to NUMPY" 15 import numpy 16 numpyincludedirs = numpy.get_include() 17 I_dirs = '-I"%s" ' % numpyincludedirs 18 #NumPy ------------------------------------ 12 19 13 20 # FIXME (Ole): Although this script says it works with a range of compilers, … … 255 262 else: 256 263 if FN == "triangle.c" or FN == "mesh_engine_c_layer.c": 257 s = '%s -c %s -I"%s" -I"%s" -o "%s.o" -O3 -DTRILIBRARY=1 -DNO_TIMER=1'\ 258 %(compiler, FN, python_include, utilities_include_dir, root) 264 #NumPy s = '%s -c %s -I"%s" -I"%s" -o "%s.o" -O3 -DTRILIBRARY=1 -DNO_TIMER=1'\ 265 s = '%s -c %s %s -I"%s" -I"%s" -o "%s.o" -O3 -DTRILIBRARY=1 -DNO_TIMER=1'\ 266 %(compiler, FN, I_dirs, python_include, utilities_include_dir, root) 259 267 else: 260 s = '%s -c %s -I"%s" -I"%s" -o "%s.o" -Wall -O3'\ 261 %(compiler, FN, python_include, utilities_include_dir, root) 268 #NumPy s = '%s -c %s -I"%s" -I"%s" -o "%s.o" -Wall -O3'\ 269 s = '%s -c %s %s -I"%s" -I"%s" -o "%s.o" -Wall -O3'\ 270 %(compiler, FN, I_dirs, python_include, utilities_include_dir, root) 262 271 263 272 if os.name == 'posix' and os.uname()[4] == 'x86_64':
Note: See TracChangeset
for help on using the changeset viewer.