Another hotfix for setuptools version on Windows and Linux/mac

This commit is contained in:
cmdr2 2024-05-27 10:57:20 +05:30
parent 21ff109632
commit 4d28c78fcc

View File

@ -21,7 +21,7 @@ os_name = platform.system()
modules_to_check = { modules_to_check = {
"torch": ("1.11.0", "1.13.1", "2.0.0", "2.0.1"), "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"), "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", "sdkit": "2.0.15",
"stable-diffusion-sdkit": "2.1.5", "stable-diffusion-sdkit": "2.1.5",
"rich": "12.6.0", "rich": "12.6.0",
@ -92,6 +92,14 @@ def update_modules():
allowed_versions, latest_version = get_allowed_versions(module_name, allowed_versions) 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 requires_install = False
if module_name in ("torch", "torchvision"): if module_name in ("torch", "torchvision"):
if version(module_name) is None: # allow any torch version if version(module_name) is None: # allow any torch version