From 4d28c78fcc6c02bc95cc2cf301f1583e5960237a Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Mon, 27 May 2024 10:57:20 +0530 Subject: [PATCH] Another hotfix for setuptools version on Windows and Linux/mac --- scripts/check_modules.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/check_modules.py b/scripts/check_modules.py index b4b11afd..00d2649f 100644 --- a/scripts/check_modules.py +++ b/scripts/check_modules.py @@ -21,7 +21,7 @@ os_name = platform.system() modules_to_check = { "torch": ("1.11.0", "1.13.1", "2.0.0", "2.0.1"), "torchvision": ("0.12.0", "0.14.1", "0.15.1", "0.15.2"), - "setuptools": "59.8.0", + "setuptools": "69.5.1", "sdkit": "2.0.15", "stable-diffusion-sdkit": "2.1.5", "rich": "12.6.0", @@ -92,6 +92,14 @@ def update_modules(): allowed_versions, latest_version = get_allowed_versions(module_name, allowed_versions) + if module_name == "setuptools": + if os_name == "Windows": + allowed_versions = ("59.8.0",) + latest_version = "59.8.0" + else: + allowed_versions = ("69.0.0",) + latest_version = "69.0.0" + requires_install = False if module_name in ("torch", "torchvision"): if version(module_name) is None: # allow any torch version