(file) Return to buildprod.py CVS log (file) (dir) Up to [Development] / JSOC / build

Diff for /JSOC/build/buildprod.py between version 1.1 and 1.3

version 1.1, 2015/02/02 19:17:04 version 1.3, 2015/02/13 18:23:36
Line 6  import os
Line 6  import os
 import pwd import pwd
 from subprocess import check_output, check_call, call, Popen, CalledProcessError from subprocess import check_output, check_call, call, Popen, CalledProcessError
  
 PROD_ROOTDIR = '/home/jsoc/cvs/Development'  # PROD_ROOTDIR = '/home/jsoc/cvs/Development'
   PROD_ROOTDIR = '/tmp/arta'
 WAYSTATION = 'waystation' WAYSTATION = 'waystation'
 WAYSTATION_USER = 'arta' WAYSTATION_USER = 'arta'
  
Line 46  if pwd.getpwuid(os.getuid())[0] != WAYST
Line 47  if pwd.getpwuid(os.getuid())[0] != WAYST
 # Turn off debug builds. # Turn off debug builds.
 os.environ['JSOC_DEBUG'] = '0' os.environ['JSOC_DEBUG'] = '0'
  
   # Make sure the JSOCROOT is PROD_ROOTDIR + '/JSOC'
   os.environ['JSOCROOT'] = PROD_ROOTDIR + '/JSOC'
   
   # Unset 'GLOBALHSTAGOVERRIDE'
   del os.environ['GLOBALHSTAGOVERRIDE']
   
 try: try:
     with Chdir(PROD_ROOTDIR + '/' + WAYSTATION + '/JSOC') as ret:     with Chdir(PROD_ROOTDIR + '/' + WAYSTATION + '/JSOC') as ret:
         # os.chdir does NOT change the environment variable $PWD. But our make system relies on PWD being the current directory.         # os.chdir does NOT change the environment variable $PWD. But our make system relies on PWD being the current directory.


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

Karen Tian
Powered by
ViewCVS 0.9.4