/[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 643 by elspeth, Fri Mar 24 00:28:41 2006 UTC
# Line 1  Line 1 
1  # Scons configuration file for modellib  # Scons configuration file for modellib
2    
3  import os  #          Copyright 2006 by ACcESS MNRF                  
4  import sys  #                                                          
5    #              http://www.access.edu.au                    
6  #  #       Primary Business: Queensland, Australia            
7  # ensure correct versions of python and scons  #  Licensed under the Open Software License version 3.0    
8    #     http://www.opensource.org/licenses/osl-3.0.php      
9  EnsurePythonVersion(2,3)  #                                                          
 EnsureSConsVersion(0,96)  
   
10  #  #
 # 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"])  
   
11  #  #
12  # set and export python directory  # set appropriate configuration variable defaults
13    esysroot=str(Dir('./..').abspath)
14    execfile(str(File(esysroot+"/scons/esys_options.py")))
15    
16  pydir = Dir(str(esysroot) + '/modellib/lib/py_src')  pydir = Dir(str(esysroot) + '/modellib/lib/py_src')
17  Export(["pydir"])  Export(["pydir"])
18  pydir2 = Dir(str(esysroot) + '/esys/modellib')  pydir2 = Dir(str(esysroot) + '/esys/modellib')
19  Export(["pydir2"])  Export(["pydir2"])
20    if pyinstall != None:
21      pyinstall = Dir(str(pyinstall) + '/modellib')
22      Export(["pyinstall"])
23    
24  #  #
25  # print out build configuration for this module  # print out build configuration for this module
26    
 print "############################################"  
27  print "Build configuration for module: modellib"  print "Build configuration for module: modellib"
 print "        platform: ", platform  
 print "        hostname: ", hostname  
 print "       pyinstall: ", pyinstall  
 print "############################################"  
28    
29  #  #
30  # 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.643

  ViewVC Help
Powered by ViewVC 1.1.26