Ignore:
Timestamp:
Apr 19, 2013, 9:39:33 PM (12 years ago)
Author:
steve
Message:

Still fiddling with store_version_info

Location:
trunk/anuga_core/source/anuga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/compile_all.py

    r8841 r8842  
    1515subprocess.call([sys.executable, 'compile.py', 'sparse_dok.c'])
    1616subprocess.call([sys.executable, 'compile.py', 'sparse_csr.c'])
    17 try:
    18     from anuga.utilities.system_tools  import store_version_info
    19     store_version_info(verbose=True)
    20 except:
    21     pass
    22 
    2317execfile('compile.py')
    2418
     
    6862
    6963
    70 os.chdir(BUILDROOT)   
     64#====================================================================
     65os.chdir('..')
     66os.chdir('utilities')
     67try:
     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
     75except:
     76    print
     77    print "----------------------------------------------------------------"
     78    print 'Storage of version info failed (just means svn is not available)'
     79    print "----------------------------------------------------------------"
     80    print
     81
     82os.chdir(BUILDROOT)
  • trunk/anuga_core/source/anuga/utilities/system_tools.py

    r8837 r8842  
    248248
    249249    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
    251254    except:
    252255        msg = 'Command "svn" is not recognised on the system PATH'
    253256        raise Exception(msg)
    254257    else:   
    255         txt = fid.read()
    256         fid.close()
     258        #txt = fid.read()
     259        #fid.close()
     260
     261        if verbose: print 'response ',txt
    257262
    258263
Note: See TracChangeset for help on using the changeset viewer.