Skip to content

Commit

Permalink
Merge pull request #383 from brynpickering/brynpickering-patch-callio…
Browse files Browse the repository at this point in the history
…pe-bottleneck

Add bottleneck as a dependency in calliope v0.6.9
  • Loading branch information
hmaarrfk committed Jan 15, 2023
2 parents 7728d01 + f9858a5 commit 2b1ad54
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions recipe/gen_patch_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2353,6 +2353,18 @@ def _gen_new_index_per_key(repodata, subdir, index_key):
deps[i] += ",<1.21.0a0"
break

# Fix missing dependency in Calliope that is required by some methods in
# xarray=2022.3, but is not a dependency in their recipe.
# This was fixed in https://github.com/conda-forge/calliope-feedstock/pull/30
# This patches build 0 with the right information too.
if (
record_name == "calliope"
and record.get("timestamp", 0) <= 1673531497000
and record["build_number"] == 0
and pkg_resources.parse_version(record["version"]) == pkg_resources.parse_version("0.6.9")
):
record["depends"].append("bottleneck")

return index


Expand Down

0 comments on commit 2b1ad54

Please sign in to comment.