py-onnx: link to external protobuf (#46434)

This commit is contained in:
Adam J. Stewart 2024-09-21 18:59:20 +02:00 committed by GitHub
parent 9577fd8b8a
commit 096ab11961
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,7 @@ class PyOnnx(PythonPackage):
# requirements.txt
depends_on("py-setuptools@64:", type="build")
depends_on("py-setuptools", type="build")
depends_on("protobuf")
depends_on("py-protobuf@3.20.2:", type=("build", "run"), when="@1.15:")
depends_on("py-protobuf@3.20.2:3", type=("build", "run"), when="@1.13")
depends_on("py-protobuf@3.12.2:3.20.1", type=("build", "run"), when="@1.12")
@ -56,7 +57,6 @@ class PyOnnx(PythonPackage):
# https://github.com/protocolbuffers/protobuf/pull/8794, fixed in
# https://github.com/onnx/onnx/pull/3112
depends_on("py-protobuf@:3.17", type=("build", "run"), when="@:1.8")
depends_on("py-protobuf+cpp", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
depends_on("py-numpy@1.16.6:", type=("build", "run"), when="@1.8.1:1.13")
depends_on("py-numpy@1.20:", type=("build", "run"), when="@1.16.0:")