conda_recipe_manager.commands.rattler_bulk_build

Description:

CLI tool that performs a bulk build operation for rattler-build.

Functions

build_recipe(file, path, args)

Helper function that performs the build operation for parallelizable execution.

create_debug_file(debug_log, results, ...)

Generates a debug file containing an organized dump of all the recipes that got a particular error message.

Classes

BuildResult(code, errors)

Struct that contains the results, metadata, errors, etc of building a single recipe file.

class conda_recipe_manager.commands.rattler_bulk_build.BuildResult(code: int, errors: list[str])[source]

Bases: object

Struct that contains the results, metadata, errors, etc of building a single recipe file.

code: int
errors: list[str]
conda_recipe_manager.commands.rattler_bulk_build.build_recipe(file: Path, path: Path, args: list[str]) tuple[str, BuildResult][source]

Helper function that performs the build operation for parallelizable execution. Logs rattler-build failures to STDERR.

Parameters:
  • file -- Recipe file to build

  • path -- Path argument provided by the user

  • args -- List of arguments to provide whole-sale to rattler-build

Returns:

Tuple containing the key/value pairing that tracks the result of the build operation

conda_recipe_manager.commands.rattler_bulk_build.create_debug_file(debug_log: Path, results: dict[str, BuildResult], error_histogram: dict[str, int]) None[source]

Generates a debug file containing an organized dump of all the recipes that got a particular error message.

Parameters:
  • debug_log -- Log file to write to

  • results

  • error_histogram