Commits

mastbaum committed a1873ad Merge

package glew, openal, sndfile, and sfml

Comments (0)

Files changed (2)

 def installer(self):
     # Get source and unpack to $VIRTUAL_ENV/src
     os.chdir(self.src_dir)
-    self.shell('hg clone ' + self.source_url)
+    self.shell('hg clone ' + source_url)
     os.chdir('g4py')
     os.environ['CLHEP_BASE_DIR'] = self.virtualenv
     system = platform.system()
     self.make(extra_opts=['install'])
 
     # Setup environment
-    env_contents = 'source %s' % os.path.join(self.virtualenv, 'bin', 'geant4.sh')
+    env_contents = '''
+pushd .  > /dev/null
+cd %s
+source geant4.sh
+popd  > /dev/null
+''' % os.path.join(self.virtualenv, 'bin')
     self.install_env('geant4.sh', contents=env_contents)
 
 setup(