C2SM / spack-c2sm

Repository for c2sm spack config and repo files
https://c2sm.github.io/spack-c2sm/latest
MIT License
7 stars 19 forks source link

Should we add a command location_default that gets the install path of a spec? #447

Closed cosunae closed 2 years ago

cosunae commented 2 years ago

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.

dominichofer commented 2 years ago

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.

dominichofer commented 2 years ago

470 closes this