Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias alias Import alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore ListLoad Str Str Str If Call NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Num decorator_list Assign NameStore Call NameLoad NameLoad Str Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Str Str keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Str Str keyword Str keyword Str keyword Num keyword Str Assign NameStore Call NameLoad NameLoad Str Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str Str keyword Str keyword Str keyword Num keyword Str Assign NameStore Call NameLoad NameLoad Str Str Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword Num keyword Str Assign NameStore Call NameLoad NameLoad Str Str keyword Str keyword Str keyword Str keyword Num keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword Str keyword NameLoad FunctionDef arguments args defaults body Return Call NameLoad Str keyword Str keyword Str keyword ListLoad Str Str Str Str keyword ListLoad keyword Str keyword Str keyword Str decorator_list Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str Str Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Str FunctionDef arguments args defaults body Return Call NameLoad Str keyword Str keyword Str keyword Str keyword ListLoad keyword Str decorator_list Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str FunctionDef arguments args defaults body Return Call NameLoad Str Str keyword Str keyword Str keyword ListLoad keyword Str keyword Str decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str keyword Str keyword Str keyword ListLoad keyword Str keyword Str decorator_list Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str FunctionDef arguments args defaults body Return Call NameLoad Str keyword Str keyword Str keyword Str keyword ListLoad keyword Str decorator_list Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword NameLoad FunctionDef arguments args defaults body Return Call NameLoad Str Str keyword Str keyword Str keyword ListLoad keyword Str keyword Str decorator_list Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str FunctionDef arguments args defaults body Return Call NameLoad Str Str keyword Str keyword Str keyword ListLoad keyword Str keyword Str decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str Str keyword Str keyword Str keyword ListLoad keyword Str keyword Str decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str Str keyword Str keyword Str keyword ListLoad keyword Str keyword Str decorator_list Assign NameStore Call NameLoad NameLoad Str Str Str Str keyword Str keyword Str keyword NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str keyword Call NameLoad Call NameLoad Call NameLoad keyword Str decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str keyword Call NameLoad Call NameLoad Call NameLoad keyword Str decorator_list Assign NameStore Call NameLoad NameLoad Str keyword Str keyword NameLoad keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Str Str keyword Str keyword Str keyword NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Str Str Str Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Str Str keyword Str keyword Str keyword NameLoad Assign NameStore Dict Str Str Str ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad
N/A N/A 
shared options and groups

The principle here is to define options once, but *not* instantiate them
globally. One reason being that options with action='append' can carry state
between parses. pip parses general options twice internally, and shouldn't
pass on state. To be consistent, all options will follow this design.

 __future__ absolute_import functools partial optparse OptionGroup SUPPRESS_HELP Option N/A warnings pip.index PyPI FormatControl fmt_ctl_handle_mutual_exclude fmt_ctl_no_binary fmt_ctl_no_use_wheel pip.locations CA_BUNDLE_PATH USER_CACHE_DIR src_prefix make_option_group N/A N/A group parser N/A N/A N/A 
    Return an OptionGroup object
    group  -- assumed to be dict with 'name' and 'options' keys
    parser -- an optparse Parser
     N/A option_group N/A OptionGroup parser N/A group N/A name N/A option N/A group N/A options N/A N/A N/A N/A option_group add_option N/A option N/A option_group N/A resolve_wheel_no_use_binary N/A N/A options N/A N/A N/A N/A N/A options use_wheel N/A N/A control N/A options format_control N/A N/A fmt_ctl_no_use_wheel control N/A check_install_build_global N/A N/A options check_options N/A None N/A N/A Disable wheels if per-setup.py call options are set.

    :param options: The OptionParser options to update.
    :param check_options: The options to check, if not supplied defaults to
        options.
     N/A N/A check_options None N/A N/A check_options options getname N/A N/A n N/A N/A N/A N/A getattr check_options n None N/A N/A names N/A build_options global_options install_options N/A N/A any N/A map getname names N/A N/A control N/A options format_control N/A N/A fmt_ctl_no_binary control N/A N/A N/A warnings warn Disabling all use of wheels due to the use of --build-options / --global-options / --install-options. stacklevel 2 N/A N/A help_ N/A partial Option -h --help dest help action help help Show help. N/A isolated_mode N/A partial Option --isolated dest isolated_mode action store_true default False help Run pip in an isolated mode, ignoring environment variables and user configuration. N/A require_virtualenv N/A partial Option --require-virtualenv --require-venv dest require_venv action store_true default False help SUPPRESS_HELP N/A verbose N/A partial Option -v --verbose dest verbose action count default 0 help Give more output. Option is additive, and can be used up to 3 times. N/A version N/A partial Option -V --version dest version action store_true help Show version and exit. N/A quiet N/A partial Option -q --quiet dest quiet action count default 0 help Give less output. N/A log N/A partial Option --log --log-file --local-log dest log metavar path help Path to a verbose appending log. N/A log_explicit_levels N/A partial Option --log-explicit-levels dest log_explicit_levels action store_true default False help SUPPRESS_HELP N/A no_input N/A partial Option --no-input dest no_input action store_true default False help SUPPRESS_HELP N/A proxy N/A partial Option --proxy dest proxy type str default help Specify a proxy in the form [user:passwd@]proxy.server:port. N/A retries N/A partial Option --retries dest retries type int default 5 help Maximum number of retries each connection should attempt (default %default times). N/A timeout N/A partial Option --timeout --default-timeout metavar sec dest timeout type float default 15 help Set the socket timeout (default %default seconds). N/A default_vcs N/A partial Option --default-vcs dest default_vcs type str default help SUPPRESS_HELP N/A skip_requirements_regex N/A partial Option --skip-requirements-regex dest skip_requirements_regex type str default help SUPPRESS_HELP exists_action N/A N/A N/A N/A N/A N/A Option --exists-action dest exists_action type choice choices N/A s i w b default N/A action append metavar action help Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup. N/A N/A cert N/A partial Option --cert dest cert type str default CA_BUNDLE_PATH metavar path help Path to alternate CA bundle. N/A client_cert N/A partial Option --client-cert dest client_cert type str default None metavar path help Path to SSL client certificate, a single file containing the private key and the certificate in PEM format. N/A index_url N/A partial Option -i --index-url --pypi-url dest index_url metavar URL default N/A PyPI simple_url help Base URL of Python Package Index (default %default). extra_index_url N/A N/A N/A N/A N/A N/A Option --extra-index-url dest extra_index_urls metavar URL action append default N/A help Extra URLs of package indexes to use in addition to --index-url. N/A N/A no_index N/A partial Option --no-index dest no_index action store_true default False help Ignore package index (only looking at --find-links URLs instead). find_links N/A N/A N/A N/A N/A N/A Option -f --find-links dest find_links action append default N/A metavar url help If a url or path to an html file, then parse for links to archives. If a local path or file:// url that's a directory,then look for archives in the directory listing. N/A allow_external N/A N/A N/A N/A N/A N/A Option --allow-external dest allow_external action append default N/A metavar PACKAGE help Allow the installation of a package even if it is externally hosted N/A N/A allow_all_external N/A partial Option --allow-all-external dest allow_all_external action store_true default False help Allow the installation of all packages that are externally hosted trusted_host N/A N/A N/A N/A N/A N/A Option --trusted-host dest trusted_hosts action append metavar HOSTNAME default N/A help Mark this host as trusted, even though it does not have valid or any HTTPS. N/A N/A no_allow_external N/A partial Option --no-allow-external dest allow_all_external action store_false default False help SUPPRESS_HELP allow_unsafe N/A N/A N/A N/A N/A N/A Option --allow-unverified --allow-insecure dest allow_unverified action append default N/A metavar PACKAGE help Allow the installation of a package even if it is hosted in an insecure and unverifiable way N/A N/A no_allow_unsafe N/A partial Option --no-allow-insecure dest allow_all_insecure action store_false default False help SUPPRESS_HELP N/A process_dependency_links N/A partial Option --process-dependency-links dest process_dependency_links action store_true default False help Enable the processing of dependency links. constraints N/A N/A N/A N/A N/A N/A Option -c --constraint dest constraints action append default N/A metavar file help Constrain versions using the given constraints file. This option can be used multiple times. N/A requirements N/A N/A N/A N/A N/A N/A Option -r --requirement dest requirements action append default N/A metavar file help Install from the given requirements file. This option can be used multiple times. N/A editable N/A N/A N/A N/A N/A N/A Option -e --editable dest editables action append default N/A metavar path/url help Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url. N/A N/A src N/A partial Option --src --source --source-dir --source-directory dest src_dir metavar dir default src_prefix help Directory to check out editable projects into. The default in a virtualenv is "<venv path>/src". The default for global installs is "<current dir>/src". N/A use_wheel N/A partial Option --use-wheel dest use_wheel action store_true default True help SUPPRESS_HELP N/A no_use_wheel N/A partial Option --no-use-wheel dest use_wheel action store_false default True help Do not Find and prefer wheel archives when searching indexes and find-links locations. DEPRECATED in favour of --no-binary. _get_format_control N/A N/A values option N/A N/A N/A Get a format_control object. N/A N/A getattr values N/A option dest N/A _handle_no_binary N/A N/A option opt_str value parser N/A N/A N/A existing N/A getattr N/A parser values N/A option dest N/A N/A fmt_ctl_handle_mutual_exclude value N/A existing no_binary N/A existing only_binary N/A _handle_only_binary N/A N/A option opt_str value parser N/A N/A N/A existing N/A getattr N/A parser values N/A option dest N/A N/A fmt_ctl_handle_mutual_exclude value N/A existing only_binary N/A existing no_binary N/A no_binary N/A N/A N/A N/A N/A N/A Option --no-binary dest format_control action callback callback _handle_no_binary type str default N/A FormatControl N/A set N/A set help Do not use binary packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either :all: to disable all binary packages, :none: to empty the set, or one or more package names with commas between them. Note that some packages are tricky to compile and may fail to install when this option is used on them. N/A only_binary N/A N/A N/A N/A N/A N/A Option --only-binary dest format_control action callback callback _handle_only_binary type str default N/A FormatControl N/A set N/A set help Do not use source packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either :all: to disable all source packages, :none: to empty the set, or one or more package names with commas between them. Packages without binary distributions will fail to install when this option is used on them. N/A N/A cache_dir N/A partial Option --cache-dir dest cache_dir default USER_CACHE_DIR metavar dir help Store the cache data in <dir>. N/A no_cache N/A partial Option --no-cache-dir dest cache_dir action store_false help Disable the cache. N/A download_cache N/A partial Option --download-cache dest download_cache default None help SUPPRESS_HELP N/A no_deps N/A partial Option --no-deps --no-dependencies dest ignore_dependencies action store_true default False help Don't install package dependencies. N/A build_dir N/A partial Option -b --build --build-dir --build-directory dest build_dir metavar dir help Directory to unpack packages into and build in. N/A install_options N/A partial Option --install-option dest install_options action append metavar options help Extra arguments to be supplied to the setup.py install command (use like --install-option="--install-scripts=/usr/local/bin"). Use multiple --install-option options to pass multiple options to setup.py install. If you are using an option with a directory path, be sure to use absolute path. N/A global_options N/A partial Option --global-option dest global_options action append metavar options help Extra global options to be supplied to the setup.py call before the install command. N/A no_clean N/A partial Option --no-clean action store_true default False help Don't clean up build directories. N/A disable_pip_version_check N/A partial Option --disable-pip-version-check dest disable_pip_version_check action store_true default False help Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index. N/A always_unzip N/A partial Option -Z --always-unzip dest always_unzip action store_true help SUPPRESS_HELP N/A general_group N/A name options General Options N/A help_ isolated_mode require_virtualenv verbose version quiet log log_explicit_levels no_input proxy retries timeout default_vcs skip_requirements_regex exists_action trusted_host cert client_cert cache_dir no_cache disable_pip_version_check N/A index_group N/A name options Package Index Options N/A index_url extra_index_url no_index find_links allow_external allow_all_external no_allow_external allow_unsafe no_allow_unsafe process_dependency_links