Changeset 8842 for trunk/anuga_core/source/anuga
- Timestamp:
- Apr 19, 2013, 9:39:33 PM (12 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/compile_all.py
r8841 r8842 15 15 subprocess.call([sys.executable, 'compile.py', 'sparse_dok.c']) 16 16 subprocess.call([sys.executable, 'compile.py', 'sparse_csr.c']) 17 try:18 from anuga.utilities.system_tools import store_version_info19 store_version_info(verbose=True)20 except:21 pass22 23 17 execfile('compile.py') 24 18 … … 68 62 69 63 70 os.chdir(BUILDROOT) 64 #==================================================================== 65 os.chdir('..') 66 os.chdir('utilities') 67 try: 68 from anuga.utilities.system_tools import store_version_info 69 store_version_info(verbose=True) 70 print 71 print "---------------------------------" 72 print 'Storing of version info succeeded' 73 print "---------------------------------" 74 print 75 except: 76 print 77 print "----------------------------------------------------------------" 78 print 'Storage of version info failed (just means svn is not available)' 79 print "----------------------------------------------------------------" 80 print 81 82 os.chdir(BUILDROOT) -
trunk/anuga_core/source/anuga/utilities/system_tools.py
r8837 r8842 248 248 249 249 try: 250 fid = os.popen('svn info') 250 #fid = os.popen('svn info') 251 #FIXME SR: This works for python 2.6 252 txt = subprocess.Popen('svn -info', shell=True, stdout=subprocess.PIPE).communicate()[0] 253 251 254 except: 252 255 msg = 'Command "svn" is not recognised on the system PATH' 253 256 raise Exception(msg) 254 257 else: 255 txt = fid.read() 256 fid.close() 258 #txt = fid.read() 259 #fid.close() 260 261 if verbose: print 'response ',txt 257 262 258 263
Note: See TracChangeset
for help on using the changeset viewer.