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

Merge branch 'pytorch' into 'master'

Make pytorch packages to depend on the cpuonly package

See merge request !175
parents b2e65747 0b082e90
No related branches found
No related tags found
1 merge request!175Make pytorch packages to depend on the cpuonly package
Pipeline #44617 passed
......@@ -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