Skip to content

Commit

Permalink
Add explicit dependency on setuptools for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mseitzer committed Mar 18, 2024
1 parent 952aa37 commit ab91b97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ pytorch-fid = "pytorch_fid.__main__:main"
[tool.poetry.dependencies]
python = ">=3.8.1,<3.13"
numpy = ">=1.16.5"
pillow = ">=6.2.1"
scipy = [
{ version = ">=1.7.0", python = "<3.12" },
# Versions above 1.11.1 have bug with scipy.linalg.sqrtm, see
# https://github.com/mseitzer/pytorch-fid/issues/103
{ version = ">=1.11.0,<=1.11.1", python = ">=3.12,<3.13" },
]
pillow = ">=6.2.1"
# Depend on setuptools for including distutils, which is no longer part of stdlib for Python >=3.12
setuptools = { version = ">=48", python = ">=3.12" }
torch = { version = ">=1.4", source = "pytorch-cpu" }
torchvision = { version = ">=0.5.0", source = "pytorch-cpu" }

Expand Down

0 comments on commit ab91b97

Please sign in to comment.