本文整理汇总了Python中cerbero.build.cookbook.CookBook.list_recipes_deps方法的典型用法代码示例。如果您正苦于以下问题:Python CookBook.list_recipes_deps方法的具体用法?Python CookBook.list_recipes_deps怎么用?Python CookBook.list_recipes_deps使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cerbero.build.cookbook.CookBook
的用法示例。
在下文中一共展示了CookBook.list_recipes_deps方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: start
# 需要导入模块: from cerbero.build.cookbook import CookBook [as 别名]
# 或者: from cerbero.build.cookbook.CookBook import list_recipes_deps [as 别名]
def start(self):
# Use a common prefix for the build tools for all the configurations
# so that it can be reused
config = Config()
os.environ.clear()
os.environ.update(self.config._pre_environ)
config.prefix = self.config.build_tools_prefix
config.load()
config.build_tools_prefix = self.config.build_tools_prefix
config.sources = self.config.build_tools_sources
config.build_tools_sources = self.config.build_tools_sources
config.cache_file = self.config.build_tools_cache
config.build_tools_cache = self.config.build_tools_cache
config.external_recipes = self.config.external_recipes
config.home_dir = self.config.home_dir
config.local_sources = self.config.local_sources
# We use a different repo to prevent clashes between the same recipe
# compiled with different prefixes
config.binary_repo = self.config.binary_repo + '/build-tools'
config.binary_repo_username = self.config.binary_repo_username
config.binary_repo_password = self.config.binary_repo_password
config.cache_url = self.config.cache_url
if not os.path.exists(config.prefix):
os.makedirs(config.prefix)
if not os.path.exists(config.sources):
os.makedirs(config.sources)
config.do_setup_env()
cookbook = CookBook(config)
recipes = self.BUILD_TOOLS
recipes += self.PLAT_BUILD_TOOLS.get(self.config.platform, [])
oven = Oven(cookbook)
ordered_recipes = cookbook.list_recipes_deps(recipes)
oven.start_cooking(ordered_recipes, self.use_binaries,
self.upload_binaries, self.build_missing)
self.config.do_setup_env()