Changeset 2546
- Timestamp:
- Mar 15, 2006, 11:15:54 AM (19 years ago)
- Location:
- inundation-numpy-branch/utilities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation-numpy-branch/utilities/compile.py
r2545 r2546 28 28 29 29 import os, string, sys, types 30 from os import sep 30 31 31 32 # Input check … … 163 164 # Check existence of Python.h 164 165 # 165 headerfile = python_include + os.sep + 'Python.h'166 headerfile = python_include + sep + 'Python.h' 166 167 try: 167 168 open(headerfile, 'r') … … 174 175 175 176 # Add location of arrayobject.h 176 177 arraypath = 'Lib' + os.sep + 'site-packages' + os.sep + 'numpy' + os.sep + 'core' + os.sep + 'include' + os.sep + 'numpy' 177 arraypath = 'site-packages%snumpy%score%sinclude%snumpy' %((sep,)*4) 178 178 if sys.platform == 'win32': #Windows 179 array_include = os.path.join(sys.exec_prefix, arraypath)179 array_include = os.path.join(sys.exec_prefix, 'lib' + sep + arraypath) 180 180 else: 181 #FIXME: Not done yet 182 python_include = os.path.join(os.path.join(sys.exec_prefix, 'include'), 183 'python' + version) 181 array_include = os.path.join(sys.exec_prefix, 182 'lib' + sep + 'python' + version + 183 sep + arraypath) 184 184 185 185 186 # Check existence of arrayobject.h 186 #187 187 array_headerfile = array_include + os.sep + 'arrayobject.h' 188 188 try: … … 372 372 compile(filename) 373 373 except Exception, e: 374 print 'Could not compile C extension %s ' %filename374 print 'Could not compile C extension %s: %s' %(filename, e) 375 375 else: 376 376 print 'C extension %s OK' %filename -
inundation-numpy-branch/utilities/test_numerical_tools.py
r2545 r2546 208 208 209 209 from numpy.random import uniform, seed 210 #seed(17, 53) 211 seed(17) 210 seed((17,53)) 212 211 213 212 x0, x1, x2, y0, y1, y2 = uniform(0.0,3.0,6)
Note: See TracChangeset
for help on using the changeset viewer.