OpenQuizz
Une application de gestion des contenus pédagogiques
pip._internal.cli.cmdoptions Namespace Reference

Data Structures

class  PipOption
 

Functions

def raise_option_error (parser, option, msg)
 
def make_option_group (group, parser)
 
def check_install_build_global (options, check_options=None)
 
def check_dist_restriction (options, check_target=False)
 
def exists_action ()
 
def extra_index_url ()
 
def find_links ()
 
def trusted_host ()
 
def constraints ()
 
def requirements ()
 
def editable ()
 
def no_binary ()
 
def only_binary ()
 
def add_target_python_options (cmd_opts)
 
def make_target_python (options)
 
def prefer_binary ()
 
def check_list_path_option (options)
 

Variables

 help_
 
 dest
 
 action
 
 help
 
 isolated_mode
 
 default
 
 require_virtualenv
 
 verbose
 
 no_color
 
 version
 
 quiet
 
 progress_bar
 
 type
 
 choices
 
 log
 
 metavar
 
 no_input
 
 proxy
 
 retries
 
 timeout
 
 cert
 
 client_cert
 
 index_url
 
 no_index
 
 src
 
 callback
 
 platforms
 
 python_version
 
 implementation
 
 abis
 
 cache_dir
 
 no_cache
 
 no_deps
 
 build_dir
 
 ignore_requires_python
 
 no_build_isolation
 
 use_pep517
 
 no_use_pep517
 
 install_options
 
 build_options
 
 global_options
 
 no_clean
 
 pre
 
 disable_pip_version_check
 
 hash
 
 require_hashes
 
 list_path
 
 list_exclude
 
 no_python_version_warning
 
 use_new_feature
 
 use_deprecated_feature
 
 general_group
 groups # More...
 
 index_group
 

Detailed Description

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.

Function Documentation

◆ add_target_python_options()

def pip._internal.cli.cmdoptions.add_target_python_options (   cmd_opts)

◆ check_dist_restriction()

def pip._internal.cli.cmdoptions.check_dist_restriction (   options,
  check_target = False 
)
Function for determining if custom platform options are allowed.

:param options: The OptionParser options.
:param check_target: Whether or not to check if --target is being used.

◆ check_install_build_global()

def pip._internal.cli.cmdoptions.check_install_build_global (   options,
  check_options = None 
)
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.

◆ check_list_path_option()

def pip._internal.cli.cmdoptions.check_list_path_option (   options)

◆ constraints()

def pip._internal.cli.cmdoptions.constraints ( )

◆ editable()

def pip._internal.cli.cmdoptions.editable ( )

◆ exists_action()

def pip._internal.cli.cmdoptions.exists_action ( )

◆ extra_index_url()

def pip._internal.cli.cmdoptions.extra_index_url ( )

◆ find_links()

def pip._internal.cli.cmdoptions.find_links ( )

◆ make_option_group()

def pip._internal.cli.cmdoptions.make_option_group (   group,
  parser 
)
Return an OptionGroup object
group  -- assumed to be dict with 'name' and 'options' keys
parser -- an optparse Parser

◆ make_target_python()

def pip._internal.cli.cmdoptions.make_target_python (   options)

◆ no_binary()

def pip._internal.cli.cmdoptions.no_binary ( )

◆ only_binary()

def pip._internal.cli.cmdoptions.only_binary ( )

◆ prefer_binary()

def pip._internal.cli.cmdoptions.prefer_binary ( )

◆ raise_option_error()

def pip._internal.cli.cmdoptions.raise_option_error (   parser,
  option,
  msg 
)
Raise an option parsing error using parser.error().

Args:
  parser: an OptionParser instance.
  option: an Option instance.
  msg: the error text.

◆ requirements()

def pip._internal.cli.cmdoptions.requirements ( )

◆ trusted_host()

def pip._internal.cli.cmdoptions.trusted_host ( )

Variable Documentation

◆ abis

abis

◆ action

action

◆ build_dir

build_dir

◆ build_options

build_options

◆ cache_dir

cache_dir

◆ callback

callback

◆ cert

cert

◆ choices

choices

◆ client_cert

client_cert

◆ default

default

◆ dest

dest

◆ disable_pip_version_check

disable_pip_version_check

◆ general_group

general_group

groups #

◆ global_options

global_options

◆ hash

hash

◆ help

help

◆ help_

help_

◆ ignore_requires_python

ignore_requires_python

◆ implementation

implementation

◆ index_group

index_group

◆ index_url

index_url

◆ install_options

install_options

◆ isolated_mode

isolated_mode

◆ list_exclude

list_exclude

◆ list_path

list_path

◆ log

log

◆ metavar

metavar

◆ no_build_isolation

no_build_isolation

◆ no_cache

no_cache

◆ no_clean

no_clean

◆ no_color

no_color

◆ no_deps

no_deps

◆ no_index

no_index

◆ no_input

no_input

◆ no_python_version_warning

no_python_version_warning

◆ no_use_pep517

no_use_pep517

◆ platforms

platforms

◆ pre

pre

◆ progress_bar

progress_bar

◆ proxy

proxy

◆ python_version

python_version

◆ quiet

quiet

◆ require_hashes

require_hashes

◆ require_virtualenv

require_virtualenv

◆ retries

retries

◆ src

src

◆ timeout

timeout

◆ type

type

◆ use_deprecated_feature

use_deprecated_feature

◆ use_new_feature

use_new_feature

◆ use_pep517

use_pep517

◆ verbose

verbose

◆ version

version