/[escript]/trunk/modellib/SConstruct
ViewVC logotype

Diff of /trunk/modellib/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 288 by jgs, Fri Dec 2 01:55:04 2005 UTC revision 457 by jgs, Tue Jan 24 06:13:03 2006 UTC
# Line 1  Line 1 
1  # Scons configuration file for modellib  # Scons configuration file for modellib
2    
 import os  
 import sys  
   
 #  
 # ensure correct versions of python and scons  
   
 EnsurePythonVersion(2,3)  
 EnsureSConsVersion(0,96)  
   
 #  
 # set appropriate defaults for configuration variables  
   
 esysroot = Dir('#..')  
 pyinstall = None  
   
 #  
 # import configuration variables passed in from  
 # calling SConscript (if any)  
   
 Import('*')  
   
 #  
 # retreive command-line arguments if any  
   
 if ARGUMENTS.get('pyinstall',0):  
   pyinstall = ARGUMENTS.get('pyinstall',0)  
 Export(["pyinstall"])  
   
 #  
 # determine platform  
   
 env = Environment(ENV = os.environ)  
 platform = env['PLATFORM']  
   
 #  
 # determine hostname  
   
 hostname = os.environ['HOSTNAME']  
   
 #  
 # export esysroot  
   
 Export(["esysroot"])  
   
3  #  #
4  # set and export python directory  # set appropriate configuration variable defaults
5    esysroot=str(Dir('./..').abspath)
6    execfile(str(File(esysroot+"/scons/esys_options.py")))
7    
8  pydir = Dir(str(esysroot) + '/modellib/lib/py_src')  pydir = Dir(str(esysroot) + '/modellib/lib/py_src')
9  Export(["pydir"])  Export(["pydir"])
10  pydir2 = Dir(str(esysroot) + '/esys/modellib')  pydir2 = Dir(str(esysroot) + '/esys/modellib')
11  Export(["pydir2"])  Export(["pydir2"])
12    if pyinstall != None:
13      pyinstall = Dir(str(pyinstall) + '/modellib')
14      Export(["pyinstall"])
15    
16  #  #
17  # print out build configuration for this module  # print out build configuration for this module
18    
 print "############################################"  
19  print "Build configuration for module: modellib"  print "Build configuration for module: modellib"
 print "        platform: ", platform  
 print "        hostname: ", hostname  
 print "       pyinstall: ", pyinstall  
 print "############################################"  
20    
21  #  #
22  # call the SConscript to do the actual build  # call the SConscript to do the actual build

Legend:
Removed from v.288  
changed lines
  Added in v.457

  ViewVC Help
Powered by ViewVC 1.1.26