This is a post-24.04 release thing …
(I took py-torch from spack@0.21.2 and pulled in some changes from the upstream dev branch to add version 2.2.x.)
spack@0.21.2