def install_pyenv(name, user=None):
    ret = {'name': name, 'result': None, 'comment': '', 'changes': {}}

    if __opts__['test']:
        ret['comment'] = 'pyenv is set to be installed'
        return ret

    return _check_and_install_python(ret, user)
Return a current distribution object for a Requirement or string
dataset/ETHPy150Open saltstack/salt/salt/states/pyenv.py/install_pyenv--crossover with--dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/pkg_resources/__init__.py/get_distribution