From fb369fc2539d8d6833991729f234015d084a37b9 Mon Sep 17 00:00:00 2001 From: Julianus Pfeuffer Date: Fri, 24 Feb 2023 12:14:51 +0100 Subject: [PATCH] fix #836 --- bioconda_utils/build.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bioconda_utils/build.py b/bioconda_utils/build.py index e09cf60db8..45379798ea 100644 --- a/bioconda_utils/build.py +++ b/bioconda_utils/build.py @@ -116,6 +116,16 @@ def build(recipe: str, pkg_paths: List[str] = None, env=whitelisted_env, noarch=is_noarch) # Use presence of expected packages to check for success + if (docker_builder.pkg_dir is not None): + platform = os.environ.get('OSTYPE', sys.platform) + if platform.startswith("darwin"): + platform = 'osx' + elif platform == "linux-gnu": + platform = "linux" + + config = load_conda_build_config(platform=platform) + pkg_paths = [p.replace(config.output_folder, docker_builder.pkg_dir) for p in pkg_paths] + for pkg_path in pkg_paths: if not os.path.exists(pkg_path): logger.error(