/[escript]/trunk/scons/esys_options.py
ViewVC logotype

Diff of /trunk/scons/esys_options.py

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

revision 457 by jgs, Tue Jan 24 06:13:03 2006 UTC revision 584 by gross, Thu Mar 9 23:03:38 2006 UTC
# Line 6  Line 6 
6  # this is the general set up for the esys scons system:  # this is the general set up for the esys scons system:
7  libinstall = None  libinstall = None
8  pyinstall = None  pyinstall = None
9    incinstall = None
10  dodebug = 0  dodebug = 0
11    
12  # locations of libs etc used by mkl  # locations of libs etc used by mkl
# Line 25  umfpack_libs = [] Line 26  umfpack_libs = []
26    
27  # locations of include files for python  # locations of include files for python
28  python_path = Dir('/usr/include')  python_path = Dir('/usr/include')
29  python_lib_path =Dir('/usr/lib')  python_lib_path = Dir('/usr/lib')
30  python_lib = Library('python2.3')  python_lib = [ 'python2.3' ]
31    
32    # locations of PAPI
33    papi_path = ''
34    papi_lib_path = ''
35    papi_libs = []
36    
37  # locations of libraries for boost  # locations of libraries for boost
38  boost_path =Dir('/usr/include')  boost_path = '/usr/include'
39  boost_lib_path =Dir('/usr/lib')  boost_lib_path = '/usr/lib'
40  boost_lib = Library('boost_python')  boost_lib = 'boost_python'
41    
42    # locations of doc building executables
43    doxygen_path = ''
44    epydoc_path = ''
45    epydoc_pythonpath = ''
46    
47  # names of c and c++ compilers to use  # names of c and c++ compilers to use
48  cc = 'gcc'  cc = 'gcc'
# Line 70  usegcc = 0 Line 81  usegcc = 0
81  options = None  options = None
82  if ARGUMENTS.get('libinstall',0): libinstall = ARGUMENTS.get('libinstall',0)  if ARGUMENTS.get('libinstall',0): libinstall = ARGUMENTS.get('libinstall',0)
83  if ARGUMENTS.get('pyinstall',0): pyinstall = ARGUMENTS.get('pyinstall',0)  if ARGUMENTS.get('pyinstall',0): pyinstall = ARGUMENTS.get('pyinstall',0)
84    if ARGUMENTS.get('incinstall',0): pyinstall = ARGUMENTS.get('incinstall',0)
85  if ARGUMENTS.get('debug',0): dodebug = 1  if ARGUMENTS.get('debug',0): dodebug = 1
86  if ARGUMENTS.get('options',0): options = ARGUMENTS.get('options',0)  if ARGUMENTS.get('options',0): options = ARGUMENTS.get('options',0)
87  if ARGUMENTS.get('usegcc',0): usegcc = 1  if ARGUMENTS.get('usegcc',0): usegcc = 1
   
88  #  #
89  # try to import <hostname>_options  # try to import <hostname>_options
90  try:  try:
# Line 85  except ImportError: Line 96  except ImportError:
96  # try to import <hostname>_options  # try to import <hostname>_options
97  if usegcc==0:  if usegcc==0:
98     import socket     import socket
99     hostname = socket.gethostname()     hostname = socket.gethostname().split('.')[0]
100     try:     try:
101        exec "from "+hostname+"_options import *"        exec "from "+hostname+"_options import *"
102     except ImportError:     except ImportError:
# Line 102  if dodebug==1: Line 113  if dodebug==1:
113       cxx_flags=cxx_flags_debug       cxx_flags=cxx_flags_debug
114       cc_flags=cc_flags_debug       cc_flags=cc_flags_debug
115    
116    #
117    # export configuration variables
118    #
119  Export(["esysroot"])  Export(["esysroot"])
120  Export(["libinstall"])  Export(["libinstall"])
121    Export(["incinstall"])
122  Export(["pyinstall"])  Export(["pyinstall"])

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

  ViewVC Help
Powered by ViewVC 1.1.26