Manage python installations with pyenv.
New in version v2014.04.
Returns or sets the currently defined default python.
CLI Example:
salt '*' pyenv.default
salt '*' pyenv.default 2.0.0-p0
Execute a python command with pyenv's shims from the user or the system.
CLI Example:
salt '*' pyenv.do 'gem list bundler'
salt '*' pyenv.do 'gem list bundler' deploy
Execute a python command with pyenv's shims using a specific python version.
CLI Example:
salt '*' pyenv.do_with_python 2.0.0-p0 'gem list bundler'
salt '*' pyenv.do_with_python 2.0.0-p0 'gem list bundler' deploy
Install pyenv systemwide
CLI Example:
salt '*' pyenv.install
Install a python implementation.
CLI Example:
salt '*' pyenv.install_python 2.0.0-p0
Check if pyenv is installed.
CLI Example:
salt '*' pyenv.is_installed
List the installable versions of python.
CLI Example:
salt '*' pyenv.list
Run pyenv rehash to update the installed shims.
CLI Example:
salt '*' pyenv.rehash
Uninstall a python implementation.
CLI Example:
salt '*' pyenv.uninstall_python 2.0.0-p0
Updates the current versions of pyenv and python-Build
CLI Example:
salt '*' pyenv.update
List the installed versions of python.
CLI Example:
salt '*' pyenv.versions
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2014.7.2
22.16.179. salt.modules.pw_user