From 46df7e4f832094db36e5e5386cdb6acfaafa9e2e Mon Sep 17 00:00:00 2001 From: Dave Hirschfeld Date: Sun, 25 Jun 2023 22:23:48 +1000 Subject: [PATCH] Only copy the recipe if it exists (#356) --- boa/core/recipe_handling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boa/core/recipe_handling.py b/boa/core/recipe_handling.py index ffd8a051..0c6cdb71 100644 --- a/boa/core/recipe_handling.py +++ b/boa/core/recipe_handling.py @@ -126,7 +126,8 @@ def copy_recipe(m): _copy_output_recipe(m, recipe_dir) else: _copy_top_level_recipe(m.path, m.config, recipe_dir) - original_recipe = m.meta_path + if exists(m.meta_path): + original_recipe = m.meta_path output_metadata = m.copy() # hard code the build string, so that tests don't get it mixed up