Changeset 7455
- Timestamp:
- Sep 1, 2009, 11:41:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/compile_all.py
r6718 r7455 5 5 6 6 os.chdir('source') 7 8 7 os.chdir('anuga') 9 8 10 #Complete horrible hack to decide which branch to take (Ole)11 #try:12 # os.stat('inundation-numpy-branch')13 #except:14 # os.chdir('inundation')15 #else:16 # os.chdir('inundation-numpy-branch')17 9 18 10 print 'Changing to', os.getcwd() … … 22 14 t0 = time.time() 23 15 24 # Attempt to compile allextensions16 # Attempt to compile all ANUGA extensions 25 17 26 18 os.chdir('utilities') … … 45 37 46 38 os.chdir(buildroot) 47 #execfile('test_all.py') 39 40 41 # Attempt to compile Metis for use with anuga_parallel 42 os.chdir('source') 43 os.chdir('pymetis') 44 45 if sys.platform == 'win32': 46 os.system('make for_win32') 47 else: 48 if os.name == 'posix': 49 if os.uname()[4] in ['x86_64', 'ia64']: 50 os.system('make COPTIONS="-fPIC"') 51 else: 52 os.system('make') 53 else: 54 msg = 'Not sure how to complie Metis on platform: %s, %s' % (sys.platform, os.name) 55 raise Exception, msg 56 57 48 58 49 59 print 'That took %.3fs' %(time.time() - t0)
Note: See TracChangeset
for help on using the changeset viewer.