def _develop_specs_from_env(spec, env):
    dev_info = (env.dev_specs.get(spec.name, {}) if env else {})
    if (not dev_info):
        return
    path = os.path.normpath(os.path.join(env.path, dev_info['path']))
    if ('dev_path' in spec.variants):
        assert (spec.variants['dev_path'].value == path)
    else:
        spec.variants.setdefault('dev_path', spack.variant.SingleValuedVariant('dev_path', path))
    spec.constrain(dev_info['spec'])
def _develop_specs_from_env(spec, env):
    dev_info = (env.dev_specs.get(spec.name, {}) if env else {})
    if (not dev_info):
        return
    path = os.path.normpath(os.path.join(env.path, dev_info['path']))
    if ('dev_path' in spec.variants):
        assert (spec.variants['dev_path'].value == path)
    else:
        spec.variants.setdefault('dev_path', spack.variant.SingleValuedVariant('dev_path', path))
    spec.constrain(dev_info['spec'])