Skip to content

Commit

Permalink
fix up run exports for fake packages for rattler-build
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Oct 11, 2024
1 parent a32add4 commit c6f423f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions conda_forge_feedstock_check_solvable/rattler_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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, ""
Expand Down
2 changes: 2 additions & 0 deletions conda_forge_feedstock_check_solvable/virtual_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c6f423f

Please sign in to comment.