本文整理汇总了Python中egginst.main.EggInst.install_iterator方法的典型用法代码示例。如果您正苦于以下问题:Python EggInst.install_iterator方法的具体用法?Python EggInst.install_iterator怎么用?Python EggInst.install_iterator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类egginst.main.EggInst
的用法示例。
在下文中一共展示了EggInst.install_iterator方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: iter_execute
# 需要导入模块: from egginst.main import EggInst [as 别名]
# 或者: from egginst.main.EggInst import install_iterator [as 别名]
def iter_execute(self):
extra_info = self._extract_extra_info()
installer = EggInst(self._egg_path, prefix=self._top_prefix)
self._progress = self._progress_factory(installer.fn,
installer.installed_size)
with self._progress:
for step in installer.install_iterator(extra_info):
yield step
self._post_install()
示例2: iter_execute
# 需要导入模块: from egginst.main import EggInst [as 别名]
# 或者: from egginst.main.EggInst import install_iterator [as 别名]
def iter_execute(self):
extra_info = self._extract_extra_info()
installer = EggInst(self._package_path, runtime_info=self._runtime_info)
progress = self._progress_factory(installer.fn,
installer.installed_size)
with progress as progress:
self._progress = progress
for step in installer.install_iterator(extra_info):
yield step
self._post_install()