@@ -31,7 +31,6 @@ def __init__(self, name, system, scons_dep, geant4_dep, clhep_dep, rat_dep, root
3131 self ._xercesc_dep = xercesc_dep
3232 self ._curl_dep = curl_dep
3333 self ._bzip_dep = bzip_dep
34- self ._env_file = envfilebuilder .EnvFileBuilder ("#snogoggles environment\n " )
3534 def get_dependencies (self ):
3635 """ Return the required dependencies."""
3736 dependencies = ["python" , "python-dev" , self ._scons_dep , self ._geant_dep ,
@@ -61,19 +60,16 @@ def _update(self):
6160 """ Special updater for rat-dev, delete env file write a new then git pull and scons."""
6261 self ._remove ()
6362 self .write_env_file ()
64- if self ._system .get_os_type () == system .System .Mac :
65- command_text = "#!/bin/bash\n source %s\n cd %s\n git pull\n scons -c\n scons zdab=0" % \
66- (os .path .join (self ._system .get_install_path (), "env_%s.sh" % self ._name ), self .get_install_path ())
67- else :
68- command_text = "#!/bin/bash\n source %s\n cd %s\n git pull\n scons -c\n scons" % \
69- (os .path .join (self ._system .get_install_path (), "env_%s.sh" % self ._name ), self .get_install_path ())
63+ command_text = "#!/bin/bash\n source %s\n cd %s\n git pull\n scons -c\n scons" % \
64+ (os .path .join (self ._system .get_install_path (), "env_%s.sh" % self ._name ), self .get_install_path ())
7065 self ._system .execute_complex_command (command_text , verbose = True )
7166 def _remove (self ):
7267 """ Delete the env files as well."""
7368 os .remove (os .path .join (self ._system .get_install_path (), "env_%s.sh" % self ._name ))
7469 os .remove (os .path .join (self ._system .get_install_path (), "env_%s.csh" % self ._name ))
7570 def write_env_file (self ):
7671 """ Adds general parts and then writes the env file."""
72+ self ._env_file = envfilebuilder .EnvFileBuilder ("#snogoggles environment\n " )
7773 self ._env_file .add_source (self ._dependency_paths [self ._geant_dep ], "bin/geant4" )
7874 self ._env_file .add_source (self ._dependency_paths [self ._rat_dep ], "env" )
7975
@@ -90,7 +86,7 @@ def write_env_file(self):
9086
9187 if self ._dependency_paths [self ._curl_dep ] is not None :
9288 self ._env_file .append_path (os .path .join (self ._dependency_paths [self ._curl_dep ], "bin" ))
93- self ._env_file .append_library_path (os .path .join (self ._dependence_paths [self ._curl_dep ], "lib" ))
89+ self ._env_file .append_library_path (os .path .join (self ._dependency_paths [self ._curl_dep ], "lib" ))
9490 self ._env_file .append_path (os .path .join (self .get_install_path (), "bin" ))
9591 self ._env_file .append_path (os .path .join (self ._dependency_paths [self ._root_dep ], "bin" ))
9692 self ._env_file .append_path (os .path .join (self ._dependency_paths [self ._clhep_dep ], "bin" ))
0 commit comments