From d72707a7307471f96d45b40b18afafe65a313ed4 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Sun, 21 Apr 2024 19:41:21 -0700 Subject: [PATCH] Ensure cupy-core can be installed in CPU-only envs --- recipe/patch_yaml/cupy.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/recipe/patch_yaml/cupy.yaml b/recipe/patch_yaml/cupy.yaml index e74f88b55..7d60c4752 100644 --- a/recipe/patch_yaml/cupy.yaml +++ b/recipe/patch_yaml/cupy.yaml @@ -24,3 +24,23 @@ if: then: # create conflicts with older cupy to avoid coexistence - add_constrains: cupy=${version} +--- +if: + name: cupy-core + version_le: 13.1.0 + timestamp_lt: 1713751559000 + has_depends: cuda-version >=11.2,<12 +then: + # move cuda-version from run to run_constrained + - remove_depends: cuda-version >=11.2,<12 + - add_constrains: cuda-version >=11.2,<12 +--- +if: + name: cupy-core + version_le: 13.1.0 + timestamp_lt: 1713751559000 + has_depends: cuda-version >=12.0,<13 +then: + # move cuda-version from run to run_constrained + - remove_depends: cuda-version >=12.0,<13 + - add_constrains: cuda-version >=12.0,<13