本文整理汇总了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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)