diff --git a/setup.py b/setup.py index de367807c309..7517a2b4e571 100644 --- a/setup.py +++ b/setup.py @@ -169,7 +169,7 @@ def run(self): 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 7ed796a1fef0..56ee4b785fe7 100644 --- a/src/diffusers/dependency_versions_table.py +++ b/src/diffusers/dependency_versions_table.py @@ -7,6 +7,7 @@ "filelock": "filelock", "flake8": "flake8>=3.8.3", "huggingface-hub": "huggingface-hub", + "importlib_metadata": "importlib_metadata", "isort": "isort>=5.5.4", "numpy": "numpy", "pytest": "pytest",