def get_steps_pip(distribution, package_source=PackageSource()):
 if (distribution not in PIP_DISTRIBUTIONS):
  raise UsageError(('Distribution %r not supported. Available distributions: %s' % (distribution, ', '.join(PIP_DISTRIBUTIONS))))
 package_manager = DOCKER_IMAGES[distribution].package_manager
 virtualenv = 'flocker-client'
 steps = [ensure_minimal_setup(package_manager), task_cli_pip_prereqs(package_manager), task_cli_pip_install(virtualenv, package_source), cli_pip_test(virtualenv, package_source)]
 return steps

def get_steps_pip ( distribution , package_source = PackageSource ( ) ) : if ( distribution not in PIP_DISTRIBUTIONS ) : raise UsageError ( ( 'Distribution %r not supported. Available distributions: %s' % ( distribution , ', ' . join ( PIP_DISTRIBUTIONS ) ) ) ) package_manager = DOCKER_IMAGES [ distribution ] . package_manager virtualenv = 'flocker-client' steps = [ ensure_minimal_setup ( package_manager ) , task_cli_pip_prereqs ( package_manager ) , task_cli_pip_install ( virtualenv , package_source ) , cli_pip_test ( virtualenv , package_source ) ] return steps
get commands to run for testing client pip installation .