PyTorch: add 1.5.0 (#16212)

This commit is contained in:
Adam J. Stewart 2020-04-21 16:20:11 -05:00 committed by GitHub
parent f3aceddbfb
commit 54ca52943d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,7 @@ class PyTorch(PythonPackage, CudaPackage):
]
version('master', branch='master', submodules=True)
version('1.5.0', tag='v1.5.0', submodules=True)
version('1.4.1', tag='v1.4.1', submodules=True)
# see https://github.com/pytorch/pytorch/issues/35149
version('1.4.0', tag='v1.4.0', submodules=True,
@ -115,6 +116,7 @@ class PyTorch(PythonPackage, CudaPackage):
# Use Ninja generator to speed up build times
# Automatically used if found
depends_on('ninja@1.5:', type='build')
depends_on('python@3.5:', when='@1.5:', type=('build', 'run'))
depends_on('python@2.7:2.8,3.5:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-numpy', type=('build', 'run'))