/[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 584 by gross, Thu Mar 9 23:03:38 2006 UTC revision 805 by gross, Thu Aug 10 06:09:02 2006 UTC
# Line 1  Line 1 
1    
2    #          Copyright 2006 by ACcESS MNRF                  
3    #                                                          
4    #              http://www.access.edu.au                    
5    #       Primary Business: Queensland, Australia            
6    #  Licensed under the Open Software License version 3.0    
7    #     http://www.opensource.org/licenses/osl-3.0.php      
8    #                                                          
9    
10    
11    
12  # this code should be called by all esys13 scons builder and testing scripts  # this code should be called by all esys13 scons builder and testing scripts
13  # it sets default values for relevant variables and overloads them with the  # it sets default values for relevant variables and overloads them with the
14  # standard gcc settings by importing gcc_options. If there is  # standard gcc settings by importing gcc_options. If there is
# Line 24  umfpack_path = '' Line 35  umfpack_path = ''
35  umfpack_lib_path = ''  umfpack_lib_path = ''
36  umfpack_libs = []  umfpack_libs = []
37    
38    # locations of libs etc used by BLAS
39    blas_path = ''
40    blas_lib_path = ''
41    blas_libs = []
42    
43  # locations of include files for python  # locations of include files for python
44  python_path = Dir('/usr/include')  python_path = Dir('/usr/include')
45  python_lib_path = Dir('/usr/lib')  python_lib_path = Dir('/usr/lib')
# Line 96  except ImportError: Line 112  except ImportError:
112  # try to import <hostname>_options  # try to import <hostname>_options
113  if usegcc==0:  if usegcc==0:
114     import socket     import socket
115     hostname = socket.gethostname().split('.')[0]     from string import ascii_letters,digits
116       hostname=""
117       for s in socket.gethostname().split('.')[0]:
118            if s in ascii_letters+digits:
119               hostname+=s
120            else:
121               hostname+="_"
122     try:     try:
123        exec "from "+hostname+"_options import *"        exec "from "+hostname+"_options import *"
124     except ImportError:     except ImportError:

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

  ViewVC Help
Powered by ViewVC 1.1.26