Git fetching: add option to remove submodules (#14370)

Add an optional 'submodules_delete' field to Git versions in Spack
packages that allows them to remove specific submodules.

For example: the nervanagpu submodule has become unavailable for the
PyTorch project (see issue 19457 at
https://github.com/pytorch/pytorch/issues/). Removing this submodule
allows 0.4.1 to build.
This commit is contained in:
Andrew W Elble
2020-02-03 22:02:45 -05:00
committed by GitHub
parent 7d444f08e7
commit 4accc78409
5 changed files with 97 additions and 5 deletions

View File

@@ -58,7 +58,8 @@ class PyTorch(PythonPackage, CudaPackage):
version('1.1.0', tag='v1.1.0', submodules=True)
version('1.0.1', tag='v1.0.1', submodules=True)
version('1.0.0', tag='v1.0.0', submodules=True)
version('0.4.1', tag='v0.4.1', submodules=True)
version('0.4.1', tag='v0.4.1', submodules=True,
submodules_delete=['third_party/nervanagpu'])
version('0.4.0', tag='v0.4.0', submodules=True)
version('0.3.1', tag='v0.3.1', submodules=True)