Commit cf7c3036 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'pytorch-patches' into 'master'

[repodata-patches] Add dataclasses and future to Pytorch

See merge request !199
parents dbfc4865 666c8126
Pipeline #45759 passed with stages
in 15 minutes and 18 seconds
......@@ -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":
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment