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)
Install pyenv if not installed. Allows you to require pyenv be installed
dataset/ETHPy150Open saltstack/salt/salt/states/pyenv.py/install_pyenv