Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Call NameLoad BinOpMod NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If BoolOpAnd NameLoad CompareNotEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad NameLoad Return TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call NameLoad Str keyword Str If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr ListLoad Str Str AttributeLoad NameLoad attr Expr Call NameLoad Str orelse Expr Call NameLoad Str Pass decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad Str Str Str Str Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Index Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad Str NameLoad keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr Str body Return If Call AttributeLoad NameLoad attr Str body Expr Call NameLoad Str keyword Str If Call AttributeLoad NameLoad attr ListLoad Str Str body Expr Call NameLoad Str Return orelse Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return CompareEq SubscriptLoad Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad keyword NameLoad Index Num Num decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr Str body Return If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list decorator_list
N/A N/A Provides methods needed by installation script for OpenStack development
virtual environments.

Synced in from openstack-common
 __future__ print_function N/A optparse N/A os N/A subprocess N/A sys InstallVenv N/A object N/A __init__ N/A N/A self root venv requirements test_requirements py_version project N/A N/A N/A N/A self root root N/A N/A self venv venv N/A N/A self requirements requirements N/A N/A self test_requirements test_requirements N/A N/A self py_version py_version N/A N/A self project project N/A die N/A N/A self message N/A args N/A N/A N/A print N/A message args file N/A sys stderr N/A N/A N/A sys exit 1 N/A run_command_with_code N/A N/A self cmd redirect_output check_exit_code N/A True True N/A N/A Runs a command in an out-of-process shell.

        Returns the output of that command. Working directory is self.root.
         N/A redirect_output N/A N/A stdout N/A subprocess PIPE N/A N/A stdout None N/A proc N/A N/A subprocess Popen cmd cwd N/A self root stdout stdout N/A output N/A N/A N/A proc communicate N/A 0 N/A N/A check_exit_code N/A N/A proc returncode 0 N/A N/A N/A N/A self die Command "%s" failed.
%s N/A N/A join cmd output N/A N/A output N/A proc returncode N/A run_command N/A N/A self cmd redirect_output check_exit_code N/A True True N/A N/A N/A N/A N/A self run_command_with_code cmd redirect_output check_exit_code N/A 0 N/A get_distro N/A N/A self N/A N/A N/A N/A N/A N/A N/A os path exists /etc/fedora-release N/A N/A N/A os path exists /etc/redhat-release N/A N/A N/A Fedora N/A self root N/A self venv N/A self requirements N/A self test_requirements N/A self py_version N/A self project N/A N/A N/A Distro N/A self root N/A self venv N/A self requirements N/A self test_requirements N/A self py_version N/A self project N/A check_dependencies N/A N/A self N/A N/A N/A N/A N/A N/A N/A self get_distro install_virtualenv N/A create_virtualenv N/A N/A self no_site_packages N/A True N/A N/A Creates the virtual environment and installs PIP.

        Creates the virtual environment and installs PIP only into the
        virtual environment.
         N/A N/A N/A N/A N/A os path isdir N/A self venv N/A N/A N/A print Creating venv... end N/A no_site_packages N/A N/A N/A N/A self run_command N/A virtualenv -q --no-site-packages N/A self venv N/A N/A N/A N/A self run_command N/A virtualenv -q N/A self venv N/A N/A print done. N/A N/A N/A print venv already exists... N/A N/A pip_install N/A N/A self N/A args N/A N/A N/A N/A self run_command N/A N/A tools/with_venv.sh pip install --upgrade N/A list args redirect_output False N/A install_dependencies N/A N/A self N/A N/A N/A N/A print Installing dependencies with pip (this can take a while)... N/A N/A N/A self pip_install pip>=1.4 N/A N/A N/A self pip_install setuptools N/A N/A N/A self pip_install pbr N/A N/A N/A self pip_install -r N/A self requirements -r N/A self test_requirements N/A parse_args N/A N/A self argv N/A N/A N/A Parses command-line arguments. N/A parser N/A N/A optparse OptionParser N/A N/A N/A parser add_option -n --no-site-packages action store_true help Do not inherit packages from global Python install. N/A N/A N/A N/A parser parse_args N/A argv N/A 1 N/A 0 N/A N/A Distro N/A InstallVenv N/A check_cmd N/A N/A self cmd N/A N/A N/A N/A bool N/A N/A N/A N/A self run_command N/A which cmd check_exit_code False strip N/A install_virtualenv N/A N/A self N/A N/A N/A N/A N/A self check_cmd virtualenv N/A N/A N/A N/A N/A self check_cmd easy_install N/A N/A N/A print Installing virtualenv via easy_install... end N/A N/A N/A self run_command N/A easy_install virtualenv N/A N/A N/A print Succeeded N/A N/A N/A N/A print Failed N/A N/A N/A self die N/A ERROR: virtualenv not found.

%s development requires virtualenv, please install it using your favorite package management tool N/A self project N/A N/A Fedora N/A Distro N/A N/A This covers all Fedora-based distributions.

    Includes: Fedora, RHEL, CentOS, Scientific Linux
     check_pkg N/A N/A self pkg N/A N/A N/A N/A N/A N/A N/A self run_command_with_code N/A rpm -q pkg check_exit_code False N/A 1 0 N/A install_virtualenv N/A N/A self N/A N/A N/A N/A N/A self check_cmd virtualenv N/A N/A N/A N/A N/A N/A self check_pkg python-virtualenv N/A N/A N/A N/A self die Please install 'python-virtualenv'. N/A N/A N/A N/A super Fedora self install_virtualenv N/A N/A