mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Enable Downloading Wheels by Default
* Switches the default in pip.index.PackageFinder to True * Supresses --use-wheel * Adds --no-use-wheel which prevents the use of Wheel
This commit is contained in:
parent
c025a7a9c5
commit
787a9b11dd
|
@ -267,7 +267,17 @@ use_wheel = OptionMaker(
|
||||||
'--use-wheel',
|
'--use-wheel',
|
||||||
dest='use_wheel',
|
dest='use_wheel',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Find and prefer wheel archives when searching indexes and find-links locations. Default to accepting source archives.')
|
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.'),
|
||||||
|
)
|
||||||
|
|
||||||
download_cache = OptionMaker(
|
download_cache = OptionMaker(
|
||||||
'--download-cache',
|
'--download-cache',
|
||||||
|
|
|
@ -137,6 +137,7 @@ class InstallCommand(Command):
|
||||||
help="Install everything relative to this alternate root directory.")
|
help="Install everything relative to this alternate root directory.")
|
||||||
|
|
||||||
cmd_opts.add_option(cmdoptions.use_wheel.make())
|
cmd_opts.add_option(cmdoptions.use_wheel.make())
|
||||||
|
cmd_opts.add_option(cmdoptions.no_use_wheel.make())
|
||||||
|
|
||||||
cmd_opts.add_option(
|
cmd_opts.add_option(
|
||||||
'--pre',
|
'--pre',
|
||||||
|
|
|
@ -49,6 +49,7 @@ class WheelCommand(Command):
|
||||||
default=DEFAULT_WHEEL_DIR,
|
default=DEFAULT_WHEEL_DIR,
|
||||||
help="Build wheels into <dir>, where the default is '<cwd>/wheelhouse'.")
|
help="Build wheels into <dir>, where the default is '<cwd>/wheelhouse'.")
|
||||||
cmd_opts.add_option(cmdoptions.use_wheel.make())
|
cmd_opts.add_option(cmdoptions.use_wheel.make())
|
||||||
|
cmd_opts.add_option(cmdoptions.no_use_wheel.make())
|
||||||
cmd_opts.add_option(
|
cmd_opts.add_option(
|
||||||
'--build-option',
|
'--build-option',
|
||||||
dest='build_options',
|
dest='build_options',
|
||||||
|
|
|
@ -37,7 +37,7 @@ class PackageFinder(object):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, find_links, index_urls,
|
def __init__(self, find_links, index_urls,
|
||||||
use_wheel=False, allow_external=[], allow_unverified=[],
|
use_wheel=True, allow_external=[], allow_unverified=[],
|
||||||
allow_all_external=False, allow_all_prereleases=False,
|
allow_all_external=False, allow_all_prereleases=False,
|
||||||
process_dependency_links=False, session=None):
|
process_dependency_links=False, session=None):
|
||||||
self.find_links = find_links
|
self.find_links = find_links
|
||||||
|
|
Loading…
Reference in a new issue