本文整理汇总了Python中baseilc.BaseILC.preCheckDeps方法的典型用法代码示例。如果您正苦于以下问题:Python BaseILC.preCheckDeps方法的具体用法?Python BaseILC.preCheckDeps怎么用?Python BaseILC.preCheckDeps使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类baseilc.BaseILC
的用法示例。
在下文中一共展示了BaseILC.preCheckDeps方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: preCheckDeps
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import preCheckDeps [as 别名]
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"])
示例2: preCheckDeps
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import preCheckDeps [as 别名]
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" )
示例3: preCheckDeps
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import preCheckDeps [as 别名]
def preCheckDeps(self):
BaseILC.preCheckDeps(self)
if( self.mode == "install" ):
# tests
if( self.makeTests ):
self.envcmake.setdefault("BUILD_LCIO_EXAMPLES","ON")
self.envcmake.setdefault("BUILD_F77_TESTJOBS","ON")
# check if java's required
if ( self.cmakeBoolOptionIsSet( "LCIO_GENERATE_HEADERS" ) or self.cmakeBoolOptionIsSet( "INSTALL_JAR" ) ):
self.addExternalDependency( ["Java"] )
示例4: preCheckDeps
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import preCheckDeps [as 别名]
def preCheckDeps(self):
BaseILC.preCheckDeps(self)
示例5: preCheckDeps
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import preCheckDeps [as 别名]
def preCheckDeps(self):
BaseILC.preCheckDeps(self)
if Version( self.version ) < '0.14':
self.addExternalDependency( ["Java"] )