Don't expose protobuf namespace to other packages, breaks torchtext build

This commit is contained in:
Adam J. Stewart 2024-04-25 11:35:11 +02:00
parent f2e63d2731
commit 50a4b08f65
No known key found for this signature in database
GPG Key ID: C66C0675661156FC

View File

@ -215,10 +215,11 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
# depends_on("onnx@1.8.0_2020-11-03", when="@1.8:1.9+onnx_ml") # depends_on("onnx@1.8.0_2020-11-03", when="@1.8:1.9+onnx_ml")
# depends_on("onnx@1.7.0_2020-05-31", when="@1.6:1.7+onnx_ml") # depends_on("onnx@1.7.0_2020-05-31", when="@1.6:1.7+onnx_ml")
with when("~custom-protobuf"): with when("~custom-protobuf"):
depends_on("protobuf@3.13.0", when="@1.10:") with default_args(type="build"):
depends_on("protobuf@3.11.4", when="@1.6:1.9") depends_on("protobuf@3.13.0", when="@1.10:")
depends_on("protobuf@3.6.1", when="@1.1:1.5") depends_on("protobuf@3.11.4", when="@1.6:1.9")
depends_on("protobuf@3.5.0", when="@1.0") depends_on("protobuf@3.6.1", when="@1.1:1.5")
depends_on("protobuf@3.5.0", when="@1.0")
with default_args(type=("build", "run")): with default_args(type=("build", "run")):
depends_on("py-protobuf@3.13", when="@1.10:") depends_on("py-protobuf@3.13", when="@1.10:")
depends_on("py-protobuf@3.11", when="@1.6:1.9") depends_on("py-protobuf@3.11", when="@1.6:1.9")