mirror of https://github.com/pypa/pip
Merge pull request #9198 from sbidoul/restore-build-dir-sbi
Restore --build-dir, as a no-op option
This commit is contained in:
commit
30eeb9ceb1
|
@ -0,0 +1,2 @@
|
||||||
|
The --build-dir option has been restored as a no-op, to soften the transition
|
||||||
|
for tools that still used it.
|
|
@ -199,6 +199,20 @@ class Command(CommandContextMixIn):
|
||||||
)
|
)
|
||||||
options.cache_dir = None
|
options.cache_dir = None
|
||||||
|
|
||||||
|
if getattr(options, "build_dir", None):
|
||||||
|
deprecated(
|
||||||
|
reason=(
|
||||||
|
"The -b/--build/--build-dir/--build-directory "
|
||||||
|
"option is deprecated and has no effect anymore."
|
||||||
|
),
|
||||||
|
replacement=(
|
||||||
|
"use the TMPDIR/TEMP/TMP environment variable, "
|
||||||
|
"possibly combined with --no-clean"
|
||||||
|
),
|
||||||
|
gone_in="21.1",
|
||||||
|
issue=8333,
|
||||||
|
)
|
||||||
|
|
||||||
if '2020-resolver' in options.features_enabled and not PY2:
|
if '2020-resolver' in options.features_enabled and not PY2:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"--use-feature=2020-resolver no longer has any effect, "
|
"--use-feature=2020-resolver no longer has any effect, "
|
||||||
|
|
|
@ -695,6 +695,14 @@ no_deps = partial(
|
||||||
help="Don't install package dependencies.",
|
help="Don't install package dependencies.",
|
||||||
) # type: Callable[..., Option]
|
) # type: Callable[..., Option]
|
||||||
|
|
||||||
|
build_dir = partial(
|
||||||
|
PipOption,
|
||||||
|
'-b', '--build', '--build-dir', '--build-directory',
|
||||||
|
dest='build_dir',
|
||||||
|
type='path',
|
||||||
|
metavar='dir',
|
||||||
|
help=SUPPRESS_HELP,
|
||||||
|
) # type: Callable[..., Option]
|
||||||
|
|
||||||
ignore_requires_python = partial(
|
ignore_requires_python = partial(
|
||||||
Option,
|
Option,
|
||||||
|
|
|
@ -43,6 +43,7 @@ class DownloadCommand(RequirementCommand):
|
||||||
# type: () -> None
|
# type: () -> None
|
||||||
self.cmd_opts.add_option(cmdoptions.constraints())
|
self.cmd_opts.add_option(cmdoptions.constraints())
|
||||||
self.cmd_opts.add_option(cmdoptions.requirements())
|
self.cmd_opts.add_option(cmdoptions.requirements())
|
||||||
|
self.cmd_opts.add_option(cmdoptions.build_dir())
|
||||||
self.cmd_opts.add_option(cmdoptions.no_deps())
|
self.cmd_opts.add_option(cmdoptions.no_deps())
|
||||||
self.cmd_opts.add_option(cmdoptions.global_options())
|
self.cmd_opts.add_option(cmdoptions.global_options())
|
||||||
self.cmd_opts.add_option(cmdoptions.no_binary())
|
self.cmd_opts.add_option(cmdoptions.no_binary())
|
||||||
|
|
|
@ -129,6 +129,8 @@ class InstallCommand(RequirementCommand):
|
||||||
help="Installation prefix where lib, bin and other top-level "
|
help="Installation prefix where lib, bin and other top-level "
|
||||||
"folders are placed")
|
"folders are placed")
|
||||||
|
|
||||||
|
self.cmd_opts.add_option(cmdoptions.build_dir())
|
||||||
|
|
||||||
self.cmd_opts.add_option(cmdoptions.src())
|
self.cmd_opts.add_option(cmdoptions.src())
|
||||||
|
|
||||||
self.cmd_opts.add_option(
|
self.cmd_opts.add_option(
|
||||||
|
|
|
@ -78,6 +78,7 @@ class WheelCommand(RequirementCommand):
|
||||||
self.cmd_opts.add_option(cmdoptions.src())
|
self.cmd_opts.add_option(cmdoptions.src())
|
||||||
self.cmd_opts.add_option(cmdoptions.ignore_requires_python())
|
self.cmd_opts.add_option(cmdoptions.ignore_requires_python())
|
||||||
self.cmd_opts.add_option(cmdoptions.no_deps())
|
self.cmd_opts.add_option(cmdoptions.no_deps())
|
||||||
|
self.cmd_opts.add_option(cmdoptions.build_dir())
|
||||||
self.cmd_opts.add_option(cmdoptions.progress_bar())
|
self.cmd_opts.add_option(cmdoptions.progress_bar())
|
||||||
|
|
||||||
self.cmd_opts.add_option(
|
self.cmd_opts.add_option(
|
||||||
|
|
Loading…
Reference in New Issue