def external_spec_selected(self, pkg, idx):
    'This means that the external spec and index idx\n        has been selected for this package.\n        '
    packages_yaml = spack.config.get('packages')
    packages_yaml = _normalize_packages_yaml(packages_yaml)
    spec_info = packages_yaml[pkg]['externals'][int(idx)]
    self._specs[pkg].external_path = spec_info.get('prefix', None)
    self._specs[pkg].external_modules = spack.spec.Spec._format_module_list(spec_info.get('modules', None))
    self._specs[pkg].extra_attributes = spec_info.get('extra_attributes', {})
This means that the external spec and index idx
has been selected for this package.
def external_spec_selected(self, pkg, idx):
    'This means that the external spec and index idx\n        has been selected for this package.\n        '
    packages_yaml = spack.config.get('packages')
    packages_yaml = _normalize_packages_yaml(packages_yaml)
    spec_info = packages_yaml[pkg]['externals'][int(idx)]
    self._specs[pkg].external_path = spec_info.get('prefix', None)
    self._specs[pkg].external_modules = spack.spec.Spec._format_module_list(spec_info.get('modules', None))
    self._specs[pkg].extra_attributes = spec_info.get('extra_attributes', {})