py-torch: avoid build issue with newer protobuf (#28721)

This commit is contained in:
Adam J. Stewart 2022-02-02 13:23:47 -06:00 committed by GitHub
parent 3576e5f3d6
commit fa8c9e4939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,8 @@ class PyTorch(PythonPackage, CudaPackage):
depends_on('py-dataclasses', when='@1.7: ^python@3.6', type=('build', 'run'))
depends_on('py-tqdm', type='run')
depends_on('py-protobuf', type=('build', 'run'))
depends_on('protobuf')
# https://github.com/spack/spack/issues/28679
depends_on('protobuf@:3.14')
depends_on('blas')
depends_on('lapack')
depends_on('eigen')