mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-28 03:03:11 +01:00
Merge pull request #1784 from easydiffusion/beta
Another hotfix for setuptools version on Windows and Linux/mac
This commit is contained in:
commit
a5c9c44e53
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user