示例#1
0
文件: fabfile.py 项目: capile/indico
def pythonbrew_cmd(cmd, **kwargs):
    with pythonbrew():
        return local('pythonbrew {0}'.format(cmd), **kwargs)
示例#2
0
文件: fabfile.py 项目: capile/indico
def pythonbrew_env(version, env):
    with pythonbrew():
        with prefix('pythonbrew venv use {0} -p {1}'.format(env, version)):
            yield