Changeset 9535
- Timestamp:
- Jan 29, 2015, 11:45:09 AM (10 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/compile_all.py
r9503 r9535 59 59 os.chdir('source') 60 60 os.chdir('anuga') 61 os.chdir('parallel')61 #os.chdir('parallel') 62 62 os.chdir('pymetis') 63 63 64 64 print 'Changing to', os.getcwd() 65 65 66 make_logfile = os.path.join(buildroot, 'make_metis.log') 67 options = '' 68 if sys.platform == 'win32': 69 options = 'for_win32' 70 else: 71 if os.name == 'posix': 72 if os.uname()[4] in ['x86_64', 'ia64']: 73 options = ' ' 74 75 make_command = 'make %s > %s' % (options, make_logfile) 76 print make_command 77 err = os.system(make_command) 66 cmd = 'python setup.py build_ext --inplace -f ' 67 print cmd 68 err = os.system(cmd) 78 69 if err != 0: 79 msg = 'Could not compile Metis '70 msg = 'Could not compile pymetis ' 80 71 msg += 'on platform %s, %s\n' % (sys.platform, os.name) 81 msg += 'You need to compile Metis manually '72 msg += 'You need to compile metis manually ' 82 73 msg += 'if you want to run ANUGA in parallel.' 83 74 raise Exception, msg 84 75 else: 85 msg = 'Compiled Metis succesfully. Output from Make is available in %s'\ 86 % make_logfile 76 msg = 'Compiled pymetis successfully.' 87 77 print msg 78 79 80 81 82 ## make_logfile = os.path.join(buildroot, 'make_metis.log') 83 ## options = '' 84 ## if sys.platform == 'win32': 85 ## options = 'for_win32' 86 ## else: 87 ## if os.name == 'posix': 88 ## if os.uname()[4] in ['x86_64', 'ia64']: 89 ## options = ' ' 90 91 ## make_command = 'make %s > %s' % (options, make_logfile) 92 ## print make_command 93 ## err = os.system(make_command) 94 ## if err != 0: 95 ## msg = 'Could not compile Metis ' 96 ## msg += 'on platform %s, %s\n' % (sys.platform, os.name) 97 ## msg += 'You need to compile Metis manually ' 98 ## msg += 'if you want to run ANUGA in parallel.' 99 ## raise Exception, msg 100 ## else: 101 ## msg = 'Compiled Metis succesfully. Output from Make is available in %s'\ 102 ## % make_logfile 103 ## print msg 88 104 89 105 except: … … 102 118 print 103 119 print '-----------------------------------------------' 104 print 'Attempting to compile pypar_extras'120 print 'Attempting to compile mpiextras' 105 121 print '-----------------------------------------------' 106 122 … … 110 126 os.chdir('anuga') 111 127 os.chdir('parallel') 112 os.chdir('pypar_extras')128 #os.chdir('pypar_extras') 113 129 114 cmd = 'python anuga_setup.py'130 cmd = 'python setup.py build_ext --inplace -f ' 115 131 print cmd 116 132 err = os.system(cmd) 117 133 if err != 0: 118 msg = 'Could not compile pypar_extras '134 msg = 'Could not compile mpiextras ' 119 135 msg += 'on platform %s, %s\n' % (sys.platform, os.name) 120 msg += 'You need to compile pypar_extras manually '136 msg += 'You need to compile mpiextras manually ' 121 137 msg += 'if you want to run ANUGA in parallel.' 122 138 raise Exception, msg 123 139 else: 124 msg = 'Compiled pypar_extras successfully.'140 msg = 'Compiled mpiextras successfully.' 125 141 print msg 126 142 except: -
trunk/anuga_core/source/anuga/setup.py
r9528 r9535 27 27 config.add_subpackage('parallel') 28 28 config.add_subpackage('pmesh') 29 config.add_subpackage('pymetis') 29 30 config.add_subpackage('shallow_water') 30 31 config.add_subpackage('structures')
Note: See TracChangeset
for help on using the changeset viewer.