Closed cosunae closed 2 years ago
This:
from spack.spec import Spec import sys s = Spec(sys.argv[1]) s.concretize() install_dir = s.format('{prefix}') print(install_dir) and this: spack python -c "print(spack.spec.Spec('eccodes@2.19.0%gcc@8.3.0').concretized().format('{prefix}'))" do that.
We decided we don't need a spack command for this. But we're going to add the use case that triggered this to the documentation.
This:
!/usr/bin/env spack python
from spack.spec import Spec import sys s = Spec(sys.argv[1]) s.concretize() install_dir = s.format('{prefix}') print(install_dir) and this: spack python -c "print(spack.spec.Spec('eccodes@2.19.0%gcc@8.3.0').concretized().format('{prefix}'))" do that.