def pythonbrew_cmd(cmd, **kwargs): with pythonbrew(): return local('pythonbrew {0}'.format(cmd), **kwargs)
def pythonbrew_env(version, env): with pythonbrew(): with prefix('pythonbrew venv use {0} -p {1}'.format(env, version)): yield