2013-09-17 07:21:15 +02:00
|
|
|
"""
|
|
|
|
shared options and groups
|
|
|
|
|
2014-01-27 15:07:10 +01:00
|
|
|
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 parse's general options twice internally, and shouldn't
|
|
|
|
pass on state. To be consistent, all options will follow this design.
|
2013-09-17 07:21:15 +02:00
|
|
|
|
|
|
|
"""
|
2014-08-31 01:52:28 +02:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2013-09-17 07:21:15 +02:00
|
|
|
import copy
|
|
|
|
from optparse import OptionGroup, SUPPRESS_HELP, Option
|
2014-11-12 01:19:32 +01:00
|
|
|
from pip.locations import CA_BUNDLE_PATH, USER_CACHE_DIR, src_prefix
|
2012-12-18 06:35:09 +01:00
|
|
|
|
2013-02-16 19:02:41 +01:00
|
|
|
|
2012-12-18 06:35:09 +01:00
|
|
|
def make_option_group(group, parser):
|
|
|
|
"""
|
|
|
|
Return an OptionGroup object
|
|
|
|
group -- assumed to be dict with 'name' and 'options' keys
|
|
|
|
parser -- an optparse Parser
|
|
|
|
"""
|
|
|
|
option_group = OptionGroup(parser, group['name'])
|
|
|
|
for option in group['options']:
|
2013-09-17 07:21:15 +02:00
|
|
|
option_group.add_option(option.make())
|
2012-12-18 06:35:09 +01:00
|
|
|
return option_group
|
|
|
|
|
2014-01-27 15:07:10 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
class OptionMaker(object):
|
|
|
|
"""Class that stores the args/kwargs that would be used to make an Option,
|
|
|
|
for making them later, and uses deepcopy's to reset state."""
|
2014-01-27 15:07:10 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
self.args = args
|
|
|
|
self.kwargs = kwargs
|
2014-01-27 15:07:10 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
def make(self):
|
|
|
|
args_copy = copy.deepcopy(self.args)
|
|
|
|
kwargs_copy = copy.deepcopy(self.kwargs)
|
|
|
|
return Option(*args_copy, **kwargs_copy)
|
2013-09-17 07:21:15 +02:00
|
|
|
|
2012-12-18 06:35:09 +01:00
|
|
|
###########
|
|
|
|
# options #
|
|
|
|
###########
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
help_ = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
'-h', '--help',
|
|
|
|
dest='help',
|
|
|
|
action='help',
|
|
|
|
help='Show help.')
|
|
|
|
|
2014-11-24 03:07:53 +01:00
|
|
|
isolated_mode = OptionMaker(
|
|
|
|
"--isolated",
|
|
|
|
dest="isolated_mode",
|
|
|
|
action="store_true",
|
|
|
|
default=False,
|
|
|
|
help=(
|
|
|
|
"Run pip in an isolated mode, ignoring environment variables and user "
|
|
|
|
"configuration."
|
|
|
|
),
|
|
|
|
)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
require_virtualenv = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
# Run only if inside a virtualenv, bail if not.
|
|
|
|
'--require-virtualenv', '--require-venv',
|
|
|
|
dest='require_venv',
|
|
|
|
action='store_true',
|
|
|
|
default=False,
|
|
|
|
help=SUPPRESS_HELP)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
verbose = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
'-v', '--verbose',
|
|
|
|
dest='verbose',
|
|
|
|
action='count',
|
|
|
|
default=0,
|
2014-01-27 15:07:10 +01:00
|
|
|
help='Give more output. Option is additive, and can be used up to 3 times.'
|
|
|
|
)
|
2013-09-17 07:21:15 +02:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
version = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
'-V', '--version',
|
|
|
|
dest='version',
|
|
|
|
action='store_true',
|
|
|
|
help='Show version and exit.')
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
quiet = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
'-q', '--quiet',
|
|
|
|
dest='quiet',
|
|
|
|
action='count',
|
|
|
|
default=0,
|
|
|
|
help='Give less output.')
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
log = OptionMaker(
|
2014-08-31 01:52:28 +02:00
|
|
|
"--log", "--log-file", "--local-log",
|
|
|
|
dest="log",
|
|
|
|
metavar="path",
|
|
|
|
help="Path to a verbose appending log."
|
|
|
|
)
|
2013-09-17 07:21:15 +02:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
log_explicit_levels = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
# Writes the log levels explicitely to the log'
|
|
|
|
'--log-explicit-levels',
|
|
|
|
dest='log_explicit_levels',
|
|
|
|
action='store_true',
|
|
|
|
default=False,
|
|
|
|
help=SUPPRESS_HELP)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
no_input = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
# Don't ask for input
|
|
|
|
'--no-input',
|
|
|
|
dest='no_input',
|
|
|
|
action='store_true',
|
|
|
|
default=False,
|
|
|
|
help=SUPPRESS_HELP)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
proxy = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
'--proxy',
|
|
|
|
dest='proxy',
|
|
|
|
type='str',
|
|
|
|
default='',
|
|
|
|
help="Specify a proxy in the form [user:passwd@]proxy.server:port.")
|
|
|
|
|
2014-01-09 10:07:51 +01:00
|
|
|
retries = OptionMaker(
|
|
|
|
'--retries',
|
|
|
|
dest='retries',
|
|
|
|
type='int',
|
2014-12-02 08:56:34 +01:00
|
|
|
default=5,
|
2014-01-09 10:07:51 +01:00
|
|
|
help="Maximum number of retries each connection should attempt "
|
|
|
|
"(default %default times).")
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
timeout = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
'--timeout', '--default-timeout',
|
|
|
|
metavar='sec',
|
|
|
|
dest='timeout',
|
|
|
|
type='float',
|
|
|
|
default=15,
|
|
|
|
help='Set the socket timeout (default %default seconds).')
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
default_vcs = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
# The default version control system for editables, e.g. 'svn'
|
|
|
|
'--default-vcs',
|
|
|
|
dest='default_vcs',
|
|
|
|
type='str',
|
|
|
|
default='',
|
|
|
|
help=SUPPRESS_HELP)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
skip_requirements_regex = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
# A regex to be used to skip requirements
|
|
|
|
'--skip-requirements-regex',
|
|
|
|
dest='skip_requirements_regex',
|
|
|
|
type='str',
|
|
|
|
default='',
|
|
|
|
help=SUPPRESS_HELP)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
exists_action = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
# Option when path already exist
|
|
|
|
'--exists-action',
|
|
|
|
dest='exists_action',
|
|
|
|
type='choice',
|
|
|
|
choices=['s', 'i', 'w', 'b'],
|
|
|
|
default=[],
|
|
|
|
action='append',
|
|
|
|
metavar='action',
|
|
|
|
help="Default action when a path already exists: "
|
|
|
|
"(s)witch, (i)gnore, (w)ipe, (b)ackup.")
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
cert = OptionMaker(
|
2013-09-17 07:21:15 +02:00
|
|
|
'--cert',
|
|
|
|
dest='cert',
|
|
|
|
type='str',
|
2014-06-13 04:59:01 +02:00
|
|
|
default=CA_BUNDLE_PATH,
|
2013-09-17 07:21:15 +02:00
|
|
|
metavar='path',
|
2014-01-27 15:07:10 +01:00
|
|
|
help="Path to alternate CA bundle.")
|
2013-09-17 07:21:15 +02:00
|
|
|
|
2014-03-07 13:41:15 +01:00
|
|
|
client_cert = OptionMaker(
|
|
|
|
'--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.")
|
|
|
|
|
2014-04-24 07:46:33 +02:00
|
|
|
no_check_certificate = OptionMaker(
|
|
|
|
"--no-check-certificate",
|
|
|
|
dest="no_check_certificate",
|
|
|
|
action="store_true",
|
|
|
|
default=False,
|
|
|
|
help="Don't validate SSL certificates.",
|
|
|
|
)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
index_url = OptionMaker(
|
2012-12-18 06:35:09 +01:00
|
|
|
'-i', '--index-url', '--pypi-url',
|
|
|
|
dest='index_url',
|
|
|
|
metavar='URL',
|
2013-02-04 20:35:35 +01:00
|
|
|
default='https://pypi.python.org/simple/',
|
2013-01-18 22:25:15 +01:00
|
|
|
help='Base URL of Python Package Index (default %default).')
|
2012-12-18 06:35:09 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
extra_index_url = OptionMaker(
|
2012-12-18 06:35:09 +01:00
|
|
|
'--extra-index-url',
|
|
|
|
dest='extra_index_urls',
|
|
|
|
metavar='URL',
|
|
|
|
action='append',
|
|
|
|
default=[],
|
2013-01-18 22:25:15 +01:00
|
|
|
help='Extra URLs of package indexes to use in addition to --index-url.')
|
2012-12-18 06:35:09 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
no_index = OptionMaker(
|
2012-12-18 06:35:09 +01:00
|
|
|
'--no-index',
|
|
|
|
dest='no_index',
|
|
|
|
action='store_true',
|
|
|
|
default=False,
|
2013-01-18 22:25:15 +01:00
|
|
|
help='Ignore package index (only looking at --find-links URLs instead).')
|
|
|
|
|
2014-01-27 15:07:10 +01:00
|
|
|
find_links = OptionMaker(
|
2013-01-18 22:25:15 +01:00
|
|
|
'-f', '--find-links',
|
|
|
|
dest='find_links',
|
|
|
|
action='append',
|
|
|
|
default=[],
|
|
|
|
metavar='url',
|
2014-01-27 15:07:10 +01:00
|
|
|
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.")
|
2012-12-18 06:35:09 +01:00
|
|
|
|
2014-09-18 04:04:42 +02:00
|
|
|
# TODO: Remove after 6.0
|
2013-09-17 07:45:51 +02:00
|
|
|
use_mirrors = OptionMaker(
|
2012-12-18 06:35:09 +01:00
|
|
|
'-M', '--use-mirrors',
|
|
|
|
dest='use_mirrors',
|
|
|
|
action='store_true',
|
|
|
|
default=False,
|
2013-07-25 10:43:26 +02:00
|
|
|
help=SUPPRESS_HELP)
|
2012-12-18 06:35:09 +01:00
|
|
|
|
2014-09-18 04:04:42 +02:00
|
|
|
# TODO: Remove after 6.0
|
2013-09-17 07:45:51 +02:00
|
|
|
mirrors = OptionMaker(
|
2012-12-18 06:35:09 +01:00
|
|
|
'--mirrors',
|
|
|
|
dest='mirrors',
|
|
|
|
metavar='URL',
|
|
|
|
action='append',
|
|
|
|
default=[],
|
2013-07-25 10:43:26 +02:00
|
|
|
help=SUPPRESS_HELP)
|
2012-12-18 06:35:09 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
allow_external = OptionMaker(
|
2013-06-02 19:03:56 +02:00
|
|
|
"--allow-external",
|
|
|
|
dest="allow_external",
|
2013-06-07 15:48:34 +02:00
|
|
|
action="append",
|
|
|
|
default=[],
|
|
|
|
metavar="PACKAGE",
|
2014-05-12 16:49:06 +02:00
|
|
|
help="Allow the installation of a package even if it is externally hosted",
|
2013-06-07 15:48:34 +02:00
|
|
|
)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
allow_all_external = OptionMaker(
|
2013-06-07 15:48:34 +02:00
|
|
|
"--allow-all-external",
|
|
|
|
dest="allow_all_external",
|
2013-06-02 19:03:56 +02:00
|
|
|
action="store_true",
|
2013-07-14 18:52:32 +02:00
|
|
|
default=False,
|
2014-05-12 16:49:06 +02:00
|
|
|
help="Allow the installation of all packages that are externally hosted",
|
2013-06-02 19:03:56 +02:00
|
|
|
)
|
|
|
|
|
2014-12-10 01:40:05 +01:00
|
|
|
trusted_host = OptionMaker(
|
|
|
|
"--trusted-host",
|
|
|
|
dest="trusted_hosts",
|
|
|
|
action="append",
|
|
|
|
metavar="HOSTNAME",
|
|
|
|
help="Mark this host as trusted, even though it does not have HTTPS.",
|
|
|
|
)
|
|
|
|
|
2014-09-18 04:04:42 +02:00
|
|
|
# Remove after 7.0
|
2013-09-17 07:45:51 +02:00
|
|
|
no_allow_external = OptionMaker(
|
2013-06-02 20:31:43 +02:00
|
|
|
"--no-allow-external",
|
2013-06-07 15:48:34 +02:00
|
|
|
dest="allow_all_external",
|
2013-06-02 20:31:43 +02:00
|
|
|
action="store_false",
|
2013-07-14 18:52:32 +02:00
|
|
|
default=False,
|
|
|
|
help=SUPPRESS_HELP,
|
2013-06-02 20:31:43 +02:00
|
|
|
)
|
|
|
|
|
2014-09-18 04:04:42 +02:00
|
|
|
# Remove --allow-insecure after 7.0
|
2013-09-17 07:45:51 +02:00
|
|
|
allow_unsafe = OptionMaker(
|
2013-10-27 04:47:57 +01:00
|
|
|
"--allow-unverified", "--allow-insecure",
|
|
|
|
dest="allow_unverified",
|
2013-06-03 00:28:51 +02:00
|
|
|
action="append",
|
|
|
|
default=[],
|
|
|
|
metavar="PACKAGE",
|
2014-05-12 16:49:06 +02:00
|
|
|
help="Allow the installation of a package even if it is hosted "
|
|
|
|
"in an insecure and unverifiable way",
|
2013-06-03 01:40:51 +02:00
|
|
|
)
|
|
|
|
|
2014-09-18 04:04:42 +02:00
|
|
|
# Remove after 7.0
|
2013-09-17 07:45:51 +02:00
|
|
|
no_allow_unsafe = OptionMaker(
|
2013-06-06 02:26:14 +02:00
|
|
|
"--no-allow-insecure",
|
|
|
|
dest="allow_all_insecure",
|
2013-06-03 01:40:51 +02:00
|
|
|
action="store_false",
|
2013-07-14 18:52:32 +02:00
|
|
|
default=False,
|
|
|
|
help=SUPPRESS_HELP
|
2013-06-03 00:28:51 +02:00
|
|
|
)
|
|
|
|
|
2014-08-01 22:20:23 +02:00
|
|
|
# Remove after 1.5
|
|
|
|
process_dependency_links = OptionMaker(
|
|
|
|
"--process-dependency-links",
|
|
|
|
dest="process_dependency_links",
|
|
|
|
action="store_true",
|
|
|
|
default=False,
|
|
|
|
help="Enable the processing of dependency links.",
|
|
|
|
)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
requirements = OptionMaker(
|
2013-02-03 07:40:30 +01:00
|
|
|
'-r', '--requirement',
|
|
|
|
dest='requirements',
|
|
|
|
action='append',
|
|
|
|
default=[],
|
|
|
|
metavar='file',
|
|
|
|
help='Install from the given requirements file. '
|
|
|
|
'This option can be used multiple times.')
|
|
|
|
|
2014-05-03 19:02:23 +02:00
|
|
|
editable = OptionMaker(
|
|
|
|
'-e', '--editable',
|
|
|
|
dest='editables',
|
|
|
|
action='append',
|
|
|
|
default=[],
|
|
|
|
metavar='path/url',
|
|
|
|
help=('Install a project in editable mode (i.e. setuptools '
|
|
|
|
'"develop mode") from a local project path or a VCS url.'),
|
|
|
|
)
|
|
|
|
|
2014-05-09 06:29:01 +02:00
|
|
|
src = OptionMaker(
|
|
|
|
'--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".'
|
|
|
|
)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
use_wheel = OptionMaker(
|
2013-02-03 07:40:30 +01:00
|
|
|
'--use-wheel',
|
|
|
|
dest='use_wheel',
|
|
|
|
action='store_true',
|
2013-11-02 18:47:11 +01:00
|
|
|
help=SUPPRESS_HELP,
|
|
|
|
)
|
|
|
|
|
|
|
|
no_use_wheel = OptionMaker(
|
|
|
|
'--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.'),
|
|
|
|
)
|
2013-02-03 07:40:30 +01:00
|
|
|
|
2014-04-24 13:29:57 +02:00
|
|
|
cache_dir = OptionMaker(
|
|
|
|
"--cache-dir",
|
|
|
|
dest="cache_dir",
|
|
|
|
default=USER_CACHE_DIR,
|
|
|
|
metavar="dir",
|
|
|
|
help="Store the cache data in <dir>."
|
|
|
|
)
|
|
|
|
|
|
|
|
no_cache = OptionMaker(
|
|
|
|
"--no-cache-dir",
|
|
|
|
dest="cache_dir",
|
|
|
|
action="store_false",
|
|
|
|
help="Disable the cache.",
|
|
|
|
)
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
download_cache = OptionMaker(
|
2013-02-03 07:40:30 +01:00
|
|
|
'--download-cache',
|
|
|
|
dest='download_cache',
|
|
|
|
default=None,
|
2014-04-24 13:29:57 +02:00
|
|
|
help=SUPPRESS_HELP)
|
2013-02-03 07:40:30 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
no_deps = OptionMaker(
|
2013-02-03 07:40:30 +01:00
|
|
|
'--no-deps', '--no-dependencies',
|
|
|
|
dest='ignore_dependencies',
|
|
|
|
action='store_true',
|
|
|
|
default=False,
|
|
|
|
help="Don't install package dependencies.")
|
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
build_dir = OptionMaker(
|
2013-02-03 07:40:30 +01:00
|
|
|
'-b', '--build', '--build-dir', '--build-directory',
|
|
|
|
dest='build_dir',
|
|
|
|
metavar='dir',
|
2014-11-12 01:19:32 +01:00
|
|
|
help='Directory to unpack packages into and build in.'
|
|
|
|
)
|
2013-02-03 07:40:30 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
install_options = OptionMaker(
|
2013-02-03 07:40:30 +01:00
|
|
|
'--install-option',
|
|
|
|
dest='install_options',
|
|
|
|
action='append',
|
|
|
|
metavar='options',
|
|
|
|
help="Extra arguments to be supplied to the setup.py install "
|
2014-01-27 15:07:10 +01:00
|
|
|
"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.")
|
2013-02-03 07:40:30 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
global_options = OptionMaker(
|
2013-02-03 07:40:30 +01:00
|
|
|
'--global-option',
|
|
|
|
dest='global_options',
|
|
|
|
action='append',
|
|
|
|
metavar='options',
|
|
|
|
help="Extra global options to be supplied to the setup.py "
|
2014-01-27 15:07:10 +01:00
|
|
|
"call before the install command.")
|
2013-02-03 07:40:30 +01:00
|
|
|
|
2013-09-17 07:45:51 +02:00
|
|
|
no_clean = OptionMaker(
|
2013-05-25 02:11:15 +02:00
|
|
|
'--no-clean',
|
|
|
|
action='store_true',
|
|
|
|
default=False,
|
|
|
|
help="Don't clean up build directories.")
|
|
|
|
|
2014-09-18 13:36:40 +02:00
|
|
|
disable_pip_version_check = OptionMaker(
|
|
|
|
"--disable-pip-version-check",
|
|
|
|
dest="disable_pip_version_check",
|
2014-08-12 03:15:55 +02:00
|
|
|
action="store_true",
|
|
|
|
default=False,
|
|
|
|
help="Don't periodically check PyPI to determine whether a new version "
|
|
|
|
"of pip is available for download.")
|
2012-12-18 06:35:09 +01:00
|
|
|
|
|
|
|
##########
|
|
|
|
# groups #
|
|
|
|
##########
|
|
|
|
|
2013-09-17 07:21:15 +02:00
|
|
|
general_group = {
|
|
|
|
'name': 'General Options',
|
|
|
|
'options': [
|
|
|
|
help_,
|
2014-11-24 03:07:53 +01:00
|
|
|
isolated_mode,
|
2013-09-17 07:21:15 +02:00
|
|
|
require_virtualenv,
|
|
|
|
verbose,
|
|
|
|
version,
|
|
|
|
quiet,
|
|
|
|
log,
|
|
|
|
log_explicit_levels,
|
|
|
|
no_input,
|
|
|
|
proxy,
|
2014-01-09 10:07:51 +01:00
|
|
|
retries,
|
2013-09-17 07:21:15 +02:00
|
|
|
timeout,
|
|
|
|
default_vcs,
|
|
|
|
skip_requirements_regex,
|
|
|
|
exists_action,
|
|
|
|
cert,
|
2014-03-07 13:41:15 +01:00
|
|
|
client_cert,
|
2014-04-24 07:46:33 +02:00
|
|
|
no_check_certificate,
|
2014-04-24 13:29:57 +02:00
|
|
|
cache_dir,
|
|
|
|
no_cache,
|
2014-09-18 13:36:40 +02:00
|
|
|
disable_pip_version_check,
|
2014-02-24 22:52:23 +01:00
|
|
|
]
|
|
|
|
}
|
2013-09-17 07:21:15 +02:00
|
|
|
|
2012-12-18 06:35:09 +01:00
|
|
|
index_group = {
|
|
|
|
'name': 'Package Index Options',
|
|
|
|
'options': [
|
|
|
|
index_url,
|
|
|
|
extra_index_url,
|
|
|
|
no_index,
|
2013-01-18 22:25:15 +01:00
|
|
|
find_links,
|
2012-12-18 06:35:09 +01:00
|
|
|
use_mirrors,
|
2013-06-02 19:03:56 +02:00
|
|
|
mirrors,
|
|
|
|
allow_external,
|
2013-06-07 15:48:34 +02:00
|
|
|
allow_all_external,
|
2014-12-10 01:40:05 +01:00
|
|
|
trusted_host,
|
2013-06-02 20:31:43 +02:00
|
|
|
no_allow_external,
|
2013-06-03 00:28:51 +02:00
|
|
|
allow_unsafe,
|
2013-06-03 01:40:51 +02:00
|
|
|
no_allow_unsafe,
|
2014-08-01 22:20:23 +02:00
|
|
|
process_dependency_links,
|
2014-02-24 22:52:23 +01:00
|
|
|
]
|
|
|
|
}
|