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

Make pytorch packages to depend on the cpuonly package

parent b2e65747
No related branches found
No related tags found
Loading
Checking pipeline status
......@@ -110,6 +110,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
if record_name == "pytorch":
record["depends"].append("cpuonly")
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