/[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 481 by jgs, Wed Feb 1 05:57:50 2006 UTC revision 619 by gross, Wed Mar 22 04:49:24 2006 UTC
# Line 26  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 75  if ARGUMENTS.get('incinstall',0): pyinst Line 85  if ARGUMENTS.get('incinstall',0): pyinst
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 87  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()     from string import ascii_letters,digits
100       hostname=""
101       for s in socket.gethostname().split('.')[0]:
102            if s in ascii_letters+digits:
103               hostname+=s
104            else:
105               hostname+="_"
106     try:     try:
107        exec "from "+hostname+"_options import *"        exec "from "+hostname+"_options import *"
108     except ImportError:     except ImportError:
# Line 106  if dodebug==1: Line 121  if dodebug==1:
121    
122  #  #
123  # export configuration variables  # export configuration variables
124    #
125  Export(["esysroot"])  Export(["esysroot"])
126  Export(["libinstall"])  Export(["libinstall"])
 Export(["pyinstall"])  
127  Export(["incinstall"])  Export(["incinstall"])
128    Export(["pyinstall"])

Legend:
Removed from v.481  
changed lines
  Added in v.619

  ViewVC Help
Powered by ViewVC 1.1.26