diff --git a/recipe/gen_patch_json.py b/recipe/gen_patch_json.py index fd11fa2af..10a1a1d1f 100644 --- a/recipe/gen_patch_json.py +++ b/recipe/gen_patch_json.py @@ -1805,6 +1805,13 @@ def _gen_new_index_per_key(repodata, subdir, index_key): pkg_resources.parse_version("2.7.1")): if record.get("timestamp", 0) <= 1654360235233: _replace_pin("scipy >=0.14,<1.8.0", "scipy >=0.14", record["depends"], record) + if ( + pkg_resources.parse_version(record["version"]) >= + pkg_resources.parse_version("2.5.0") and + pkg_resources.parse_version(record["version"]) <= + pkg_resources.parse_version("2.7.3") + ): + _replace_pin('setuptools', 'setuptools !=65.0.*', deps, record) if record_name == "aesara-base": if ( @@ -1814,6 +1821,15 @@ def _gen_new_index_per_key(repodata, subdir, index_key): record["build_number"] == 1 and subdir.startswith("win-") ): record["depends"].append("libpython >=2.2") + if record["version"] in ["2.7.8", "2.7.9"]: + _replace_pin('setuptools >=45.0.0', 'setuptools >=48.0.0,!=65.0.*', deps, record) + if ( + pkg_resources.parse_version(record["version"]) >= + pkg_resources.parse_version("2.7.4") and + pkg_resources.parse_version(record["version"]) <= + pkg_resources.parse_version("2.7.7") + ): + record["depends"].append("setuptools !=65.0.*") if record_name == "requests" and ( pkg_resources.parse_version(record["version"]) >=