def task_cli_pip_install(venv_name='flocker-client', package_source=PackageSource()):
 url = 'https://{bucket}.s3.amazonaws.com/{key}/Flocker-{version}-py2-none-any.whl'.format(bucket=ARCHIVE_BUCKET, key='python', version=_get_wheel_version(package_source))
 return sequence([run_from_args(['virtualenv', '--python=/usr/bin/python2.7', venv_name]), run_from_args(['source', '{}/bin/activate'.format(venv_name)]), run_from_args(['pip', 'install', '--upgrade', 'pip']), run_from_args(['pip', 'install', url])])

def task_cli_pip_install ( venv_name = 'flocker-client' , package_source = PackageSource ( ) ) : url = 'https://{bucket}.s3.amazonaws.com/{key}/Flocker-{version}-py2-none-any.whl' . format ( bucket = ARCHIVE_BUCKET , key = 'python' , version = _get_wheel_version ( package_source ) ) return sequence ( [ run_from_args ( [ 'virtualenv' , '--python=/usr/bin/python2.7' , venv_name ] ) , run_from_args ( [ 'source' , '{}/bin/activate' . format ( venv_name ) ] ) , run_from_args ( [ 'pip' , 'install' , '--upgrade' , 'pip' ] ) , run_from_args ( [ 'pip' , 'install' , url ] ) ] )
install the flocker client into a virtualenv using pip .