Skip to content

Commit

Permalink
Merge pull request #307 from maresb/main
Browse files Browse the repository at this point in the history
Fix aesara-base's broken setuptools pin
  • Loading branch information
ocefpaf authored Oct 31, 2022
2 parents 8e121e7 + 494e496 commit b80ba9b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions recipe/gen_patch_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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"]) >=
Expand Down

0 comments on commit b80ba9b

Please sign in to comment.