Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfeuffer authored Feb 24, 2023
1 parent a4f1a6b commit fb369fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bioconda_utils/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fb369fc

Please sign in to comment.