From aabe1f7af0a190f8e2292d1babceb204d167f718 Mon Sep 17 00:00:00 2001 From: Gonzalo Pena-Castellanos Date: Thu, 24 Feb 2022 18:29:07 -0500 Subject: [PATCH] Patch python deps for oiffile --- recipe/gen_patch_json.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipe/gen_patch_json.py b/recipe/gen_patch_json.py index 1a2bfc21c..743ed61ca 100644 --- a/recipe/gen_patch_json.py +++ b/recipe/gen_patch_json.py @@ -1320,6 +1320,12 @@ def _gen_new_index_per_key(repodata, subdir, index_key): if record_name == "napari" and record.get("timestamp", 0) < 1642529454000: # 2022-01-18 _replace_pin("pillow", "pillow !=7.1.0,!=7.1.1", record.get("depends", []), record) + # oiffile depends on python >=3.8 not python >=3.7 + if record_name == "oiffile": + if record["version"] in ["2021.6.6", "2022.2.2"] and record["build"].endswith("_0"): + i = record['depends'].index('python >=3.7') + record['depends'][i] = 'python >=3.8' + # replace =2.7 with ==2.7.* for compatibility with older conda new_deps = [] changed = False