diff --git a/conda_build/api.py b/conda_build/api.py index 677dc7261a..ac8d4fcecb 100644 --- a/conda_build/api.py +++ b/conda_build/api.py @@ -17,6 +17,8 @@ from os.path import dirname, expanduser, join from pathlib import Path +from conda.deprecations import deprecated + # make the Config class available in the api namespace from .config import DEFAULT_PREFIX_LENGTH as _prefix_length from .config import Config, get_channel_urls, get_or_merge_config @@ -167,6 +169,28 @@ def get_output_file_paths( return sorted(list(set(outs))) +@deprecated("24.3.0", "24.5.0", addendum="Use `get_output_file_paths` instead.") +def get_output_file_path( + recipe_path_or_metadata, + no_download_source=False, + config=None, + variants=None, + **kwargs, +): + """Get output file paths for any packages that would be created by a recipe + + Both split packages (recipes with more than one output) and build matrices, + created with variants, contribute to the list of file paths here. + """ + return get_output_file_paths( + recipe_path_or_metadata, + no_download_source=no_download_source, + config=config, + variants=variants, + **kwargs, + ) + + def check(recipe_path, no_download_source=False, config=None, variants=None, **kwargs): """Check validity of input recipe path