summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-05-06 18:05:26 -0500
committerGitHub <noreply@github.com>2020-05-06 18:05:26 -0500
commit74b3ae4803eb899fe0da7f762b601dd00dd9c376 (patch)
tree48a0bed59bceb4048284d5b3ad7148be2c0c592d
parentd1983d7395ca51e7ef87bd9a79614b2f760cd994 (diff)
downloadspack-74b3ae4803eb899fe0da7f762b601dd00dd9c376.tar.gz
spack-74b3ae4803eb899fe0da7f762b601dd00dd9c376.tar.bz2
spack-74b3ae4803eb899fe0da7f762b601dd00dd9c376.tar.xz
spack-74b3ae4803eb899fe0da7f762b601dd00dd9c376.zip
PyTorch/Torchvision: fix deptype (#16495)
-rw-r--r--var/spack/repos/builtin/packages/py-torch/package.py2
-rw-r--r--var/spack/repos/builtin/packages/py-torchvision/package.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/py-torch/package.py b/var/spack/repos/builtin/packages/py-torch/package.py
index b2b15c7dfc..024e0d95b2 100644
--- a/var/spack/repos/builtin/packages/py-torch/package.py
+++ b/var/spack/repos/builtin/packages/py-torch/package.py
@@ -124,7 +124,7 @@ class PyTorch(PythonPackage, CudaPackage):
depends_on('py-future', when='@1.1: ^python@:2', type='build')
depends_on('py-pyyaml', type=('build', 'run'))
depends_on('py-typing', when='@0.4: ^python@:3.4', type=('build', 'run'))
- depends_on('py-pybind11', when='@0.4:', type=('build', 'run'))
+ depends_on('py-pybind11', when='@0.4:', type=('build', 'link', 'run'))
depends_on('blas')
depends_on('lapack')
depends_on('protobuf', when='@0.4:')
diff --git a/var/spack/repos/builtin/packages/py-torchvision/package.py b/var/spack/repos/builtin/packages/py-torchvision/package.py
index faee2f087a..9d4c3a0efa 100644
--- a/var/spack/repos/builtin/packages/py-torchvision/package.py
+++ b/var/spack/repos/builtin/packages/py-torchvision/package.py
@@ -32,9 +32,9 @@ class PyTorchvision(PythonPackage):
depends_on('py-setuptools', type='build')
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-six', when='@:0.5', type=('build', 'run'))
- depends_on('py-torch@1.4:', when='@0.6:', type=('build', 'run'))
- depends_on('py-torch@1.2:', when='@0.4:', type=('build', 'run'))
- depends_on('py-torch@1.1:', type=('build', 'run'))
+ depends_on('py-torch@1.4:', when='@0.6:', type=('build', 'link', 'run'))
+ depends_on('py-torch@1.2:', when='@0.4:', type=('build', 'link', 'run'))
+ depends_on('py-torch@1.1:', type=('build', 'link', 'run'))
# https://github.com/pytorch/vision/issues/1712
depends_on('py-pillow@4.1.1:6', when='@:0.4', type=('build', 'run')) # or py-pillow-simd
depends_on('py-pillow@4.1.1:', when='@0.5:', type=('build', 'run')) # or py-pillow-simd