diff --git a/setup.py b/setup.py index de367807..7517a2b4 100644 --- a/setup.py +++ b/setup.py @@ -169,7 +169,7 @@ extras["test"] = [ extras["dev"] = extras["quality"] + extras["test"] + extras["training"] install_requires = [ - deps["importlib_metadata"] + ";python_version<'3.8'", # importlib_metadata for Python versions that don't have it + deps["importlib_metadata"], deps["filelock"], deps["huggingface-hub"], deps["numpy"], diff --git a/src/diffusers/dependency_versions_table.py b/src/diffusers/dependency_versions_table.py index 7ed796a1..56ee4b78 100644 --- a/src/diffusers/dependency_versions_table.py +++ b/src/diffusers/dependency_versions_table.py @@ -7,6 +7,7 @@ deps = { "filelock": "filelock", "flake8": "flake8>=3.8.3", "huggingface-hub": "huggingface-hub", + "importlib_metadata": "importlib_metadata", "isort": "isort>=5.5.4", "numpy": "numpy", "pytest": "pytest",