本文整理汇总了Python中baseilc.BaseILC类的典型用法代码示例。如果您正苦于以下问题:Python BaseILC类的具体用法?Python BaseILC怎么用?Python BaseILC使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了BaseILC类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: postCheckDeps
def postCheckDeps(self):
BaseILC.postCheckDeps(self)
self.env["SATELLITESROOT"]=self.installPath
self.envpath["LD_LIBRARY_PATH"].append( "$SATELLITES/lib" )
self.env["SOSYMLINK"]="true"
self.envcmds.append('export IMAKEINCLUDE=\"-I${LCBASEDIR} -I${LCLIBROOT}\" ')
示例2: postCheckDeps
def postCheckDeps(self):
BaseILC.postCheckDeps(self)
self.env["HepPDT_HOME"] = self.installPath
if self.installPath != "/usr":
self.envpath["PATH"].append( "$HepPDT_HOME/bin" )
self.envpath["LD_LIBRARY_PATH"].append( "$HepPDT_HOME/lib" )
示例3: __init__
def __init__(self, userInput):
BaseILC.__init__(self, userInput, "CLHEP", "CLHEP")
self.download.supportHEAD = False
self.download.supportedTypes = ["wget"]
self.reqfiles = [ ["lib/libCLHEP.a", "lib/libCLHEP.so", "lib64/libCLHEP.so", "lib/libCLHEP.dylib"] ]
示例4: createLink
def createLink(self):
BaseILC.createLink(self)
if( not os.path.exists( self.env["G4ENV_INIT"] )):
#print "cannot read G4Data versions, G4ENV_INIT not defined properly!"
return
if Version(self.version, max_elements=2 ) < "9.0":
#print "cannot read G4Data versions, this is only supported for Geant4 versions >= 9.0"
return
datasetsenv = [ "G4LEDATA", "G4NEUTRONHPDATA", "G4LEVELGAMMADATA", "G4RADIOACTIVEDATA" ]
if Version(self.version, max_elements=2 ) >= "9.1":
datasetsenv.insert(0, 'G4ABLADATA')
if Version(self.version, max_elements=2 ) >= "9.3":
datasetsenv.append('G4REALSURFACEDATA')
if Version(self.version, max_elements=2 ) >= "9.4":
datasetsenv.append('G4PIIDATA')
depsdir=self.parent.installPath+"/.dependencies"
g4dataversfile = depsdir+"/g4data"
trymakedir( depsdir )
os.system( "> " + g4dataversfile )
for envvar in datasetsenv:
envval=getoutput( ". "+self.env["G4ENV_INIT"]+" >/dev/null 2>&1 ; echo $"+envvar )
if envval:
ver=Version(envval).versions[-1]
os.system( "echo %s:%s >> %s" % (envvar,ver,g4dataversfile) )
示例5: setMode
def setMode(self, mode):
BaseILC.setMode(self, mode)
if Version( self.version ) > '0.7.3':
self.hasCMakeBuildSupport = True
else:
self.hasCMakeBuildSupport = False
示例6: preCheckDeps
def preCheckDeps(self):
BaseILC.preCheckDeps(self)
if( self.mode == "install" ):
if self.cmakeBoolOptionIsSet( "GEANT4_USE_SYSTEM_CLHEP" ):
if not self.envcmake.has_key('CLHEP_ROOT_DIR'):
self.addExternalDependency( ["CLHEP"] )
clhepmod = self.parent.module("CLHEP")
if not clhepmod:
self.abort( "please set GEANT4_USE_SYSTEM_CLHEP=OFF or add CLHEP to your ilcinstall cfg file")
self.envcmake[ "CLHEP_ROOT_DIR"] = clhepmod.installPath
if self.cmakeBoolOptionIsSet( "GEANT4_USE_QT" ):
if not self.envcmake.has_key('QT_QMAKE_EXECUTABLE'):
self.addExternalDependency( ["QT"] )
qtmod = self.parent.module("QT")
if not qtmod:
self.abort( "please set QT_QMAKE_EXECUTABLE if using option GEANT4_USE_QT or add QT to your ilcinstall cfg file")
self.envcmake[ "QT_QMAKE_EXECUTABLE"] = qtmod.installPath + "/bin/qmake"
else:
self.envcmake["QT_QMAKE_EXECUTABLE"]=fixPath( self.envcmake["QT_QMAKE_EXECUTABLE"] )
if not os.path.exists( self.envcmake["QT_QMAKE_EXECUTABLE"] ):
self.abort( "QT_QMAKE_EXECUTABLE points to an invalid location: " + self.envcmake["QT_QMAKE_EXECUTABLE"] )
#if self.cmakeBoolOptionIsSet( "GEANT4_USE_GDML" ):
# if not self.envcmake.has_key( "XERCESC_INCLUDE_DIR" ):
# self.abort( "XERCESC_INCLUDE_DIR not specified" )
# self.envcmake["XERCESC_INCLUDE_DIR"]=fixPath( self.envcmake["XERCESC_INCLUDE_DIR"] )
# if not os.path.exists( self.envcmake["XERCESC_INCLUDE_DIR"] ):
# self.abort( "XERCESC_INCLUDE_DIR points to an invalid location: " + self.envcmake["XERCESC_INCLUDE_DIR"] )
# if not self.envcmake.has_key( "XERCESC_LIBRARY" ):
# self.abort( "XERCESC_LIBRARY not specified" )
# self.envcmake["XERCESC_LIBRARY"]=fixPath( self.envcmake["XERCESC_LIBRARY"] )
# if not os.path.exists( self.envcmake["XERCESC_LIBRARY"] ):
# self.abort( "XERCESC_LIBRARY points to an invalid location: " + self.envcmake["XERCESC_LIBRARY"] )
if self.envcmake.has_key( "XERCESC_ROOT_DIR" ):
import platform
if platform.architecture()[0] == '64bit':
self.envpath["LD_LIBRARY_PATH"].append( self.envcmake[ "XERCESC_ROOT_DIR" ] + "/lib64" )
else:
self.envpath["LD_LIBRARY_PATH"].append( self.envcmake[ "XERCESC_ROOT_DIR" ] + "/lib" )
示例7: postCheckDeps
def postCheckDeps(self):
BaseILC.postCheckDeps(self)
self.env[ 'MOKKA' ] = self.installPath
self.envcmds.append("export G4WORKDIR=$MOKKA")
if self.g4ver < '9.5':
self.envpath["PATH"].append( "$MOKKA/bin/"+self.os_ver.type+"-g++" )
else:
self.envpath["PATH"].append( "$MOKKA/bin" )
self.envcmds.append('test -r ${G4ENV_INIT} && { cd $(dirname ${G4ENV_INIT}) ; . ./$(basename ${G4ENV_INIT}) ; cd $OLDPWD ; }')
if self.g4ver < '9.5':
# disable visualization drivers
self.envcmds.append("unset G4VIS_BUILD_OIX_DRIVER G4VIS_USE_OIX_DRIVER G4VIS_USE_OIX" ) # G4VIS_USE_OIX_DRIVER changed in ver 9.3 to G4VIS_USE_OIX
#self.envcmds.append("unset G4VIS_BUILD_DAWN_DRIVER G4VIS_USE_DAWN" )
#self.envcmds.append("unset G4UI_BUILD_QT_SESSION G4VIS_BUILD_OPENGLQT_DRIVER G4VIS_USE_OPENGLQT G4UI_USE_QT" )
#self.envcmds.append("unset G4VIS_BUILD_OPENGLX_DRIVER G4VIS_USE_OPENGLX" )
self.envcmds.append("unset G4VIS_BUILD_OPENGLXM_DRIVER G4VIS_USE_OPENGLXM" )
self.envcmds.append("unset G4UI_BUILD_XAW_SESSION G4UI_USE_XAW" )
self.envcmds.append("unset G4UI_BUILD_XM_SESSION G4UI_USE_XM" )
# ---- DEPRECATED cross-compile of 32bit in 64bit ---------------
#d = self.parent.env.copy()
#d.update(self.env)
#if d.setdefault('CXXFLAGS','').find('m32') != -1:
# self.envcmds.append('test -d "$OGLHOME/lib" && export OGLLIBS="-L${OGLHOME}/lib -lGLU -lGL"' )
# self.envcmds.append('test -d "$CLHEP_BASE_DIR/lib" && export CLHEP_LIB_DIR=${CLHEP_BASE_DIR}/lib' )
# self.envcmds.append('test -d "$OIVHOME/lib" && export OIVLIBS="-L${OIVHOME}/lib -lInventor -lInventorXt"' )
# self.envcmds.append('test -d "$XERCESCROOT/lib32" && export GDMLLIBS="-L${XERCESCROOT}/lib32 -lxerces-c"' )
# compiling Mokka crashes if LDFLAGS is set. # TODO add bug to geant4 bug tracker
self.envcmds.append("unset LDFLAGS")
示例8: preCheckDeps
def preCheckDeps(self):
BaseILC.preCheckDeps(self)
if( self.mode == "install" ):
if self.cmakeBoolOptionIsSet( "MARLIN_GUI" ):
if( sys.platform != "mac" and sys.platform != "darwin" ):
self.addExternalDependency( ["QT"] )
self.reqfiles.append(["bin/MarlinGUI"])
示例9: postCheckDeps
def postCheckDeps(self):
BaseILC.postCheckDeps(self)
self.env["ilcutil"] = self.installPath
# PATH
self.envpath["LD_LIBRARY_PATH"].append( "$ilcutil/lib" )
示例10: postCheckDeps
def postCheckDeps(self):
BaseILC.postCheckDeps(self)
self.env["LEDAROOT"]=self.installPath
self.env["SOSYMLINK"]="true"
self.envcmds.append('export IMAKEINCLUDE=\"-I${LCBASEDIR}\" ')
示例11: postCheckDeps
def postCheckDeps(self):
BaseILC.postCheckDeps(self)
self.env["ROOTSYS"] = self.installPath
self.envpath["PATH"].append( "$ROOTSYS/bin" )
self.envpath["LD_LIBRARY_PATH"].append( "$ROOTSYS/lib" )
self.envpath["PYTHONPATH"].append( "$ROOTSYS/lib" )
示例12: postCheckDeps
def postCheckDeps(self):
BaseILC.postCheckDeps(self)
self.env["LCDD"] = self.installPath
self.env["GDML_SCHEMA_DIR"]= "$LCDD"
self.envpath["LD_LIBRARY_PATH"].append( "$LCDD/lib" )
示例13: postCheckDeps
def postCheckDeps(self):
BaseILC.postCheckDeps(self)
# fill MARLIN_DLL
if( self.name != "MarlinUtil" and self.name != "PandoraPFANew" ):
self.parent.module('Marlin').envpath["MARLIN_DLL"].append(
self.installPath+"/lib/lib"+self.name+self.shlib_ext )
示例14: __init__
def __init__(self, name, userInput):
BaseILC.__init__(self, userInput, name, name)
self.reqfiles = []
self.download.root = "ilctools"
self.hasCMakeBuildSupport = False
self.hasCMakeFindSupport = False
self.skipCompile = True
示例15: __init__
def __init__(self, userInput):
BaseILC.__init__(self, userInput, "LCDD", "lcdd")
self.reqfiles = [ ["lib/liblcdd.so", "lib/liblcdd.dylib"] ]
self.download.supportedTypes = ["svn"]
self.reqmodules = [ "GDML" ]