diff --git a/conda_forge_feedstock_check_solvable/rattler_build.py b/conda_forge_feedstock_check_solvable/rattler_build.py index 358d535..c68a8a5 100644 --- a/conda_forge_feedstock_check_solvable/rattler_build.py +++ b/conda_forge_feedstock_check_solvable/rattler_build.py @@ -35,11 +35,9 @@ def invoke_rattler_build( # this is OK since there is an lru cache virtual_package_repo_url = virtual_package_repodata() # create a temporary file and dump the variants as YAML - with tempfile.NamedTemporaryFile(mode="w", delete=False) as variants_file: yaml.dump(variants, variants_file) variants_file.flush() - channels_args = [] for c in channels: channels_args.extend(["-c", c]) @@ -56,6 +54,7 @@ def invoke_rattler_build( ) status, out, err = run_rattler_build(args) + out = f"Command: {' '.join(args)}\nLogs:\n{out}" if status == 0: return True, "" diff --git a/conda_forge_feedstock_check_solvable/virtual_packages.py b/conda_forge_feedstock_check_solvable/virtual_packages.py index 60887a8..2171f7c 100644 --- a/conda_forge_feedstock_check_solvable/virtual_packages.py +++ b/conda_forge_feedstock_check_solvable/virtual_packages.py @@ -40,6 +40,8 @@ def to_repodata_entry(self): build = f"{self.build_number}" out["depends"] = list(out["depends"]) out["build"] = build + # add an empty run exports for rattler-build + out["run_exports"] = {} fname = f"{self.name}-{self.version}-{build}.tar.bz2" return fname, out