diff --git a/var/spack/repos/builtin/packages/py-torchgeo/package.py b/var/spack/repos/builtin/packages/py-torchgeo/package.py index 71f76dba27..a384a04ef9 100644 --- a/var/spack/repos/builtin/packages/py-torchgeo/package.py +++ b/var/spack/repos/builtin/packages/py-torchgeo/package.py @@ -40,8 +40,8 @@ class PyTorchgeo(PythonPackage): depends_on('py-matplotlib', type=('build', 'run')) depends_on('py-numpy', type=('build', 'run')) depends_on('py-omegaconf@2.1:', type=('build', 'run')) - depends_on('pil@2.9:', when='@0.3:', type=('build', 'run')) - depends_on('pil@2.9:9', when='@:0.2', type=('build', 'run')) + depends_on('pil@2.9:+zlib+jpeg+tiff', when='@0.3:', type=('build', 'run')) + depends_on('pil@2.9:9+zlib+jpeg+tiff', when='@:0.2', type=('build', 'run')) depends_on('py-pyproj@2.2:', type=('build', 'run')) depends_on('py-pytorch-lightning@1.3:', type=('build', 'run')) depends_on('py-rasterio@1.0.16:', type=('build', 'run'))