Remove enabled variants from install prefix.

- these make the prefix too long in many cases.
- users can figure out which install is which by querying.
This commit is contained in:
Todd Gamblin 2015-09-27 16:57:20 -07:00
parent adbd393c39
commit 8818f4ac5e

View file

@ -187,14 +187,9 @@ def hidden_file_paths(self):
def relative_path_for_spec(self, spec):
_check_concrete(spec)
enabled_variants = (
'-' + v.name for v in spec.variants.values()
if v.enabled)
dir_name = "%s-%s%s-%s" % (
dir_name = "%s-%s-%s" % (
spec.name,
spec.version,
''.join(enabled_variants),
spec.dag_hash(self.hash_len))
path = join_path(