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(