Commits

Stan Seibert committed 4c4364c Draft

Fix bug in geant4 version variable

  • Participants
  • Parent commits 4304840

Comments (0)

Files changed (1)

 try:
     from shrinkwrap.install import ShrinkwrapInstall
 except ImportError:
-    import subprocess; subprocess.check_call('pip install shrinkwrap', shell=True)
+    import subprocess; subprocess.check_call('pip install -b $VIRTUAL_ENV/build/build-shrinkwrap shrinkwrap', shell=True)
     from shrinkwrap.install import ShrinkwrapInstall
 from setuptools import setup
 import os
 
     # Create build directory
     os.chdir(self.src_dir)
-    g4src_dir = os.path.realpath('geant' + self.version)
+    g4src_dir = os.path.realpath('geant' + version)
     build_dir = g4src_dir + '-build'
     if not os.path.exists(build_dir):
         os.mkdir(build_dir)