py-lightning: setuptools required at run-time (#45260)

This commit is contained in:
Adam J. Stewart 2024-07-17 20:11:42 +02:00 committed by GitHub
parent 9ae1014e55
commit 4710cbb281
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -79,6 +79,9 @@ class PyLightning(PythonPackage):
# depends_on("py-pytorch-lightning", when="@2:") # depends_on("py-pytorch-lightning", when="@2:")
# Historical requirements # Historical requirements
# https://github.com/Lightning-AI/pytorch-lightning/pull/20081
depends_on("py-setuptools", when="@:2.3")
with when("@:2.0"): with when("@:2.0"):
depends_on("py-jinja2@:4") depends_on("py-jinja2@:4")
depends_on("py-arrow@1.2:2") depends_on("py-arrow@1.2:2")

View File

@ -52,7 +52,8 @@ class PyPytorchLightning(PythonPackage):
# src/pytorch_lightning/__setup__.py # src/pytorch_lightning/__setup__.py
depends_on("python@3.8:", when="@2:", type=("build", "run")) depends_on("python@3.8:", when="@2:", type=("build", "run"))
depends_on("py-setuptools", type="build") # https://github.com/Lightning-AI/pytorch-lightning/pull/20081
depends_on("py-setuptools", type=("build", "run"))
# requirements/pytorch/base.txt # requirements/pytorch/base.txt
depends_on("py-numpy@1.17.2:", when="@1.3:", type=("build", "run")) depends_on("py-numpy@1.17.2:", when="@1.3:", type=("build", "run"))