当前位置: 首页>>代码示例>>Python>>正文


Python BaseILC.preCheckDeps方法代码示例

本文整理汇总了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"])
开发者ID:iLCSoft,项目名称:iLCInstall,代码行数:9,代码来源:marlin.py

示例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" )
开发者ID:kislerdm,项目名称:alibava_analysis-tool,代码行数:62,代码来源:geant4.py

示例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"] )
开发者ID:kislerdm,项目名称:alibava_analysis-tool,代码行数:15,代码来源:lcio.py

示例4: preCheckDeps

# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import preCheckDeps [as 别名]
 def preCheckDeps(self):
     BaseILC.preCheckDeps(self)                    
开发者ID:iLCSoft,项目名称:iLCInstall,代码行数:4,代码来源:lcdd.py

示例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"] )
开发者ID:iLCSoft,项目名称:iLCInstall,代码行数:7,代码来源:gear.py


注:本文中的baseilc.BaseILC.preCheckDeps方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。