75 |
|
|
76 |
if not options_file : |
if not options_file : |
77 |
import socket |
import socket |
78 |
from string import ascii_letters,digits |
hostname = re.sub("[^0-9a-zA-Z]", "_", socket.gethostname().split('.')[0]) |
|
hostname="" |
|
|
for s in socket.gethostname().split('.')[0]: |
|
|
if s in ascii_letters+digits: |
|
|
hostname+=s |
|
|
else: |
|
|
hostname+="_" |
|
79 |
tmp = os.path.join("scons",hostname+"_options.py") |
tmp = os.path.join("scons",hostname+"_options.py") |
80 |
|
|
81 |
if os.path.isfile(tmp) : |
if os.path.isfile(tmp) : |
325 |
libinstall = env['libinstall'] |
libinstall = env['libinstall'] |
326 |
env.Append(LIBPATH = [libinstall,]) # Adds -L for building of libescript.so libfinley.so escriptcpp.so finleycpp.so |
env.Append(LIBPATH = [libinstall,]) # Adds -L for building of libescript.so libfinley.so escriptcpp.so finleycpp.so |
327 |
env.PrependENVPath('LD_LIBRARY_PATH', libinstall) |
env.PrependENVPath('LD_LIBRARY_PATH', libinstall) |
328 |
if env['PLATFORM'] == "win32": |
if IS_WINDOWS_PLATFORM : |
329 |
env.PrependENVPath('PATH', libinstall) |
env.PrependENVPath('PATH', libinstall) |
|
env.PrependENVPath('PATH', env['boost_lib_path']) |
|
330 |
except KeyError: |
except KeyError: |
331 |
libinstall = None |
libinstall = None |
332 |
try: |
try: |
560 |
|
|
561 |
try: |
try: |
562 |
lib_path = env['netCDF_lib_path'] |
lib_path = env['netCDF_lib_path'] |
|
if IS_WINDOWS_PLATFORM: env['ENV']['PATH']+=";"+lib_path |
|
563 |
env.Append(LIBPATH = [ lib_path, ]) |
env.Append(LIBPATH = [ lib_path, ]) |
564 |
|
if IS_WINDOWS_PLATFORM : |
565 |
|
env.PrependENVPath('PATH', lib_path) |
566 |
except KeyError: |
except KeyError: |
567 |
pass |
pass |
568 |
else: |
else: |
577 |
try: |
try: |
578 |
lib_path = env['boost_lib_path'] |
lib_path = env['boost_lib_path'] |
579 |
env.Append(LIBPATH = [lib_path,]) |
env.Append(LIBPATH = [lib_path,]) |
580 |
|
if IS_WINDOWS_PLATFORM : |
581 |
|
env.PrependENVPath('PATH', lib_path) |
582 |
except KeyError: |
except KeyError: |
583 |
pass |
pass |
584 |
try: |
try: |
670 |
api_doxygen = None |
api_doxygen = None |
671 |
|
|
672 |
try: |
try: |
673 |
svn_pipe = os.popen("svn info | grep '^Revision'") |
svn_pipe = os.popen("svnversion -n") |
674 |
rev = svn_pipe.readlines() |
global_revision = svn_pipe.readlines() |
675 |
svn_pipe.close() |
svn_pipe.close() |
676 |
svn_version = re.sub("[^0-9]", "", rev[0]) |
global_revision = re.sub("[^0-9]", "", global_revision) |
677 |
except: |
except: |
678 |
svn_version = "0" |
global_revision = "0" |
679 |
env.Append(CPPDEFINES = "SVN_VERSION="+svn_version) |
env.Append(CPPDEFINES = "SVN_VERSION="+global_revision[0]) |
680 |
|
|
681 |
# Python install - esys __init__.py |
# Python install - esys __init__.py |
682 |
init_target = env.Command(pyinstall+'/__init__.py', None, Touch('$TARGET')) |
init_target = env.Command(pyinstall+'/__init__.py', None, Touch('$TARGET')) |