當前位置: 首頁>>代碼示例>>Python>>正文


Python FormulaBase.install方法代碼示例

本文整理匯總了Python中sprinter.formulabase.FormulaBase.install方法的典型用法代碼示例。如果您正苦於以下問題:Python FormulaBase.install方法的具體用法?Python FormulaBase.install怎麽用?Python FormulaBase.install使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在sprinter.formulabase.FormulaBase的用法示例。


在下文中一共展示了FormulaBase.install方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     if not lib.which('git'):
         self.logger.warn("git is not installed! Please install git to install this feature.")
         return
     self.__clone_repo(self.target.get('url'),
                       self.directory.install_directory(self.feature_name),
                       branch=self.target.get('branch', 'master'))
     FormulaBase.install(self)
開發者ID:danielra,項目名稱:sprinter,代碼行數:10,代碼來源:git.py

示例2: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     config = self.target
     self.p4environ = dict(list(os.environ.items()) + [('P4USER', config.get('username')),
                                                       ('P4PASSWD', config.get('password')),
                                                       ('P4CLIENT', config.get('client'))])
     installed = self.__install_perforce(config)
     if not os.path.exists(os.path.expanduser(config.get('root_path'))):
         os.makedirs(os.path.expanduser(config['root_path']))
     if config.is_affirmative('write_p4settings'):
         self.__write_p4settings(config)
     if config.is_affirmative('overwrite_client') and installed:
         self.__configure_client(config)
     self.__add_p4_env(config)
     FormulaBase.install(self)
開發者ID:danielra,項目名稱:sprinter,代碼行數:16,代碼來源:perforce.py

示例3: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     create_virtualenv(self.directory.install_directory(self.feature_name))
     self.__install_eggs(self.target)
     self.__add_paths(self.target)
     return FormulaBase.install(self)
開發者ID:tmckay,項目名稱:sprinter,代碼行數:7,代碼來源:eggscript.py

示例4: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     self.__install_file(self.target)
     FormulaBase.install(self)
開發者ID:tmckay,項目名稱:sprinter,代碼行數:5,代碼來源:template.py

示例5: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     self.__get_package_manager()
     self.__install_package(self.target)
     FormulaBase.install(self)
開發者ID:tmckay,項目名稱:sprinter,代碼行數:6,代碼來源:package.py

示例6: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     self.__install(self.target)
     if self.target.has("executable"):
         symlink_target = self.target.get("symlink", self.target.get("executable"))
         self.__symlink_executable(self.target.get("executable"), symlink_target)
     FormulaBase.install(self)
開發者ID:pombredanne,項目名稱:sprinter,代碼行數:8,代碼來源:unpack.py

示例7: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     self.__run_command('install', 'target')
     FormulaBase.install(self)
開發者ID:pombredanne,項目名稱:sprinter,代碼行數:5,代碼來源:command.py

示例8: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     for c in (c for c in self.target.keys() if c not in self.ignored_keys):
         self.directory.add_to_env('export %s=%s' % (c.upper(), self.target.get(c)))
     FormulaBase.install(self)
開發者ID:danielra,項目名稱:sprinter,代碼行數:6,代碼來源:env.py

示例9: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     for c in (c for c in self.target.keys() if c != 'formula'):
         self.directory.add_to_rc('export %s=%s' % (c.upper(), self.target.get(c)))
     FormulaBase.install(self)
開發者ID:tmckay,項目名稱:sprinter,代碼行數:6,代碼來源:env.py

示例10: install

# 需要導入模塊: from sprinter.formulabase import FormulaBase [as 別名]
# 或者: from sprinter.formulabase.FormulaBase import install [as 別名]
 def install(self):
     self._install_node()
     self._install_packages()
     self._link_executables()
     FormulaBase.install(self)
開發者ID:pombredanne,項目名稱:yt.formula.node,代碼行數:7,代碼來源:node.py


注:本文中的sprinter.formulabase.FormulaBase.install方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。