当前位置: 首页>>代码示例>>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;未经允许,请勿转载。