@@ -218,6 +218,7 @@ def add_rebuild_migration_yaml(
218218 nominal_pr_limit : int = PR_LIMIT ,
219219 max_solver_attempts : int = 3 ,
220220 force_pr_after_solver_attempts : int = MAX_SOLVER_ATTEMPTS * 2 ,
221+ include_build_requirements : build = False ,
221222) -> None :
222223 """Adds rebuild migrator.
223224
@@ -245,6 +246,8 @@ def add_rebuild_migration_yaml(
245246 The number of PRs per hour, defaults to 5
246247 force_pr_after_solver_attempts : int, optional
247248 The number of solver attempts after which to force a PR, defaults to 100.
249+ include_build_requirements : bool, optional
250+ Check build requirements for package_names, defaults to false.
248251 """
249252
250253 total_graph = create_rebuild_graph (
@@ -253,6 +256,7 @@ def add_rebuild_migration_yaml(
253256 excluded_feedstocks ,
254257 exclude_pinned_pkgs = exclude_pinned_pkgs ,
255258 include_noarch = config .get ("include_noarch" , False ),
259+ include_build_requirements = include_build_requirements ,
256260 )
257261
258262 # Note at this point the graph is made of all packages that have a
@@ -439,6 +443,7 @@ def migration_factory(
439443 set (loaded_yaml ) | {ly .replace ("_" , "-" ) for ly in loaded_yaml }
440444 ) & all_package_names
441445 exclude_pinned_pkgs = migrator_config .get ("exclude_pinned_pkgs" , True )
446+ include_build_requirements = migrator_config .get ("include_build_requirements" , False )
442447
443448 age = time .time () - loaded_yaml .get ("migrator_ts" , time .time ())
444449 age /= 24 * 60 * 60
@@ -480,6 +485,7 @@ def migration_factory(
480485 nominal_pr_limit = _pr_limit ,
481486 max_solver_attempts = max_solver_attempts ,
482487 force_pr_after_solver_attempts = force_pr_after_solver_attempts ,
488+ include_build_requirements = include_build_requirements ,
483489 )
484490 if skip_solver_checks :
485491 assert not migrators [- 1 ].check_solvable
0 commit comments