Skip to content
Snippets Groups Projects
Commit 666c8126 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

[repodata-patches] Add dataclasses and future to Pytorch

Also remove the cpuonly patch from Pytorch packages
parent dbfc4865
No related branches found
No related tags found
1 merge request!199[repodata-patches] Add dataclasses and future to Pytorch
Pipeline #45757 passed
...@@ -118,10 +118,11 @@ def _gen_new_index(repodata, packages_key): ...@@ -118,10 +118,11 @@ def _gen_new_index(repodata, packages_key):
if parse_version(record["version"]) <= parse_version("4.1.0"): if parse_version(record["version"]) <= parse_version("4.1.0"):
record["depends"].append("numpy <1.18") record["depends"].append("numpy <1.18")
# somehow conda cannot resolve pytorch cpu without the cpuonly package # pytorch 1.7.0 0 packages need this extra dependencies to run
# we only ship cpu-only pytorch packages
if record_name == "pytorch": 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 return index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment