本文整理汇总了Python中baseilc.BaseILC.setMode方法的典型用法代码示例。如果您正苦于以下问题:Python BaseILC.setMode方法的具体用法?Python BaseILC.setMode怎么用?Python BaseILC.setMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类baseilc.BaseILC
的用法示例。
在下文中一共展示了BaseILC.setMode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
if Version( self.version ) > '0.7.3':
self.hasCMakeBuildSupport = True
else:
self.hasCMakeBuildSupport = False
示例2: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
if( self.mode == "install" ):
if( Version( self.version ) < "9.5" ):
self.abort( "ilcinstall only supports installation of Geant4 9.5 or greater!" )
# download url
self.download.url = "http://geant4.cern.ch/support/source/geant4.%s.tar.gz" % self.version
示例3: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
if( Version( self.version ) < '4.6' ):
self.download.url = "http://download.qt-project.org/archive/qt/%s/qt-x11-opensource-src-%s.tar.gz" % (self.version[:3], self.version,)
if self.os_ver.type == "Darwin":
self.download.url = "http://download.qt-project.org/archive/qt/%s/qt-mac-opensource-src-%s.tar.gz" % (self.version[:3], self.version,)
else:
self.download.url = "http://download.qt-project.org/archive/qt/%s/qt-everywhere-opensource-src-%s.tar.gz" % (self.version[:3], self.version,)
示例4: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
urlver=self.version
if self.version=='2006':
urlver='2006b'
# don;t remove this line (needed to skip version check in baseilc.py; Version( "2006" ) raises Exception)
self.download.url = "http://cernlib.web.cern.ch/cernlib/download/"+urlver+"_source/tar/"
示例5: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
self.download.url = 'https://root.cern.ch/download/root_v%s.source.tar.gz' % self.version
self.download.svnurl = 'http://root.cern.ch/svn/root'
if( Version( self.version ) == 'HEAD' ):
self.download.svnurl += '/trunk'
else:
self.download.svnurl += '/tags/v' + self.version.replace('.','-')
示例6: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
self.download.svnurl = 'svn://svn.freehep.org/lcio'
if( Version( self.version ) == 'HEAD' ):
self.download.svnurl += '/trunk'
elif '-pre' in self.version or '-dev' in self.version:
self.download.svnurl += '/branches/' + self.version
else:
self.download.svnurl += '/tags/' + self.version
示例7: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
# avoid warning 'download forced....'
if self.download.type != "svn":
self.download.type='svn-export'
if( Version( self.version ) == 'HEAD' ):
self.download.svnurl = 'http://svn.dcache.org/dCache/trunk/modules/dcap'
else:
# 1.9.5-5
self.download.svnurl = 'http://svn.dcache.org/dCache/tags/%s/modules/dcap' % self.version
示例8: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
self.download.type = 'svn'
self.download.svnurl = 'https://svnsrv.desy.de/public/GeneralBrokenLines'
if( Version( self.version ) == 'HEAD' ):
self.download.svnurl += '/trunk/cpp'
elif '-pre' in self.version or '-dev' in self.version:
self.download.svnurl += '/branches/' + self.version + '/cpp'
else:
self.download.svnurl += '/tags/' + self.version + '/cpp'
示例9: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
self.download.svnurl = 'https://svnsrv.desy.de/public/aidasoft/DD4hep'
if( Version( self.version ) == 'HEAD' ):
self.download.svnurl += '/trunk/DDSegmentation/'
elif '-pre' in self.version or '-dev' in self.version:
self.download.svnurl += '/branches/' + self.version + '/DDSegmentation/'
else:
self.download.svnurl += '/tags/' + self.version + '/DDSegmentation/'
示例10: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
self.download.type = "svn"
self.download.svnurl = 'https://github.com/AIDASoft/DD4hep'
# simply do an svn co from the git repository
if( Version( self.version ) == 'HEAD' ):
self.download.svnurl += '/trunk'
# elif 'pre' in self.version or 'dev' in self.version:
# self.download.svnurl += '/branches/' + self.version
else:
self.download.svnurl += '/tags/' + self.version
self.download.svnurl += '/examples/'
示例11: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
if( self.mode == "install" ):
if( Version( self.version ) < "1.9.1.1" ):
self.abort( "ilcinstall only supports installation of CLHEP 1.9.1.1 or greater!" )
if( Version( self.version ) == "2.0.3.0" and not isinPath( "xiar" )):
self.abort( "CLHEP 2.0.3.0 requires xiar, that wasn't found in your system!" )
# download url
if( Version( self.version ) == "1.9.1.1" or Version( self.version ) == "2.0.1.1" ):
self.download.url = "http://proj-clhep.web.cern.ch/proj-clhep/export/share/CLHEP/%s/clhep-%s.tgz" \
% (self.version, self.version)
else:
self.download.url = "http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/distributions/clhep-%s.tgz" \
% (self.version,)
if( Version( self.version ) >= "2.1.3.0" ):
self.hasCMakeBuildSupport = True
示例12: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
if( Version( self.version ) >= '7.0' ):
self.download.type = "svn"
self.download.svnurl = 'http://llrforge.in2p3.fr/svn/Mokka'
if( Version( self.version ) == 'HEAD' ):
self.download.svnurl += '/trunk'
elif 'pre' in self.version or 'dev' in self.version:
self.download.svnurl += '/branches/' + self.version
else:
self.download.svnurl += '/tags/' + self.version
else:
self.download.type = "cvs"
if( self.download.username == "anonymous" ):
self.download.username = "anoncvs"
self.download.password = "%ilc%"
示例13: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
self.download.url = "ftp://ftp.gnu.org/gnu/gsl/gsl-" + self.version + ".tar.gz"
示例14: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
self.download.url = "http://www.lpthe.jussieu.fr/~salam/fastjet/repo/fastjet-" + self.version + ".tar.gz"
示例15: setMode
# 需要导入模块: from baseilc import BaseILC [as 别名]
# 或者: from baseilc.BaseILC import setMode [as 别名]
def setMode(self, mode):
BaseILC.setMode(self, mode)
self.download.url = "https://cmake.org/files/v%s/cmake-%s.tar.gz" % (self.version[:3], self.version)