diff --git a/deps/repodata-patches/gen_patch_json.py b/deps/repodata-patches/gen_patch_json.py index 65dee25c0405a03b9303852f8629b2f995aeb14b..90d6ae3af5bf0ca47673943e2b2b694990b09341 100644 --- a/deps/repodata-patches/gen_patch_json.py +++ b/deps/repodata-patches/gen_patch_json.py @@ -118,10 +118,11 @@ def _gen_new_index(repodata, packages_key): if parse_version(record["version"]) <= parse_version("4.1.0"): record["depends"].append("numpy <1.18") - # somehow conda cannot resolve pytorch cpu without the cpuonly package - # we only ship cpu-only pytorch packages + # pytorch 1.7.0 0 packages need this extra dependencies to run if record_name == "pytorch": - record["depends"].append("cpuonly") + if record["version"] == "1.7.0" and record["build_number"] == 0: + record["depends"].append("dataclasses >=0.8") + record["depends"].append("future >=0.18.2") return index