File tree Expand file tree Collapse file tree 6 files changed +0
-61
lines changed Expand file tree Collapse file tree 6 files changed +0
-61
lines changed Original file line number Diff line number Diff line change 27
27
PreviousBuildDirError ,
28
28
UninstallationError ,
29
29
)
30
- from pip ._internal .utils .deprecation import deprecated
31
30
from pip ._internal .utils .filesystem import check_path_owner
32
31
from pip ._internal .utils .logging import BrokenStdoutLoggingError , setup_logging
33
32
from pip ._internal .utils .misc import get_prog , normalize_path
@@ -149,20 +148,6 @@ def _main(self, args: List[str]) -> int:
149
148
)
150
149
options .cache_dir = None
151
150
152
- if getattr (options , "build_dir" , None ):
153
- deprecated (
154
- reason = (
155
- "The -b/--build/--build-dir/--build-directory "
156
- "option is deprecated and has no effect anymore."
157
- ),
158
- replacement = (
159
- "use the TMPDIR/TEMP/TMP environment variable, "
160
- "possibly combined with --no-clean"
161
- ),
162
- gone_in = "21.3" ,
163
- issue = 8333 ,
164
- )
165
-
166
151
if "2020-resolver" in options .features_enabled :
167
152
logger .warning (
168
153
"--use-feature=2020-resolver no longer has any effect, "
Original file line number Diff line number Diff line change @@ -731,18 +731,6 @@ def _handle_no_cache_dir(
731
731
help = "Don't install package dependencies." ,
732
732
)
733
733
734
- build_dir : Callable [..., Option ] = partial (
735
- PipOption ,
736
- "-b" ,
737
- "--build" ,
738
- "--build-dir" ,
739
- "--build-directory" ,
740
- dest = "build_dir" ,
741
- type = "path" ,
742
- metavar = "dir" ,
743
- help = SUPPRESS_HELP ,
744
- )
745
-
746
734
ignore_requires_python : Callable [..., Option ] = partial (
747
735
Option ,
748
736
"--ignore-requires-python" ,
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class DownloadCommand(RequirementCommand):
37
37
def add_options (self ) -> None :
38
38
self .cmd_opts .add_option (cmdoptions .constraints ())
39
39
self .cmd_opts .add_option (cmdoptions .requirements ())
40
- self .cmd_opts .add_option (cmdoptions .build_dir ())
41
40
self .cmd_opts .add_option (cmdoptions .no_deps ())
42
41
self .cmd_opts .add_option (cmdoptions .global_options ())
43
42
self .cmd_opts .add_option (cmdoptions .no_binary ())
Original file line number Diff line number Diff line change @@ -135,8 +135,6 @@ def add_options(self) -> None:
135
135
),
136
136
)
137
137
138
- self .cmd_opts .add_option (cmdoptions .build_dir ())
139
-
140
138
self .cmd_opts .add_option (cmdoptions .src ())
141
139
142
140
self .cmd_opts .add_option (
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ def add_options(self) -> None:
65
65
self .cmd_opts .add_option (cmdoptions .src ())
66
66
self .cmd_opts .add_option (cmdoptions .ignore_requires_python ())
67
67
self .cmd_opts .add_option (cmdoptions .no_deps ())
68
- self .cmd_opts .add_option (cmdoptions .build_dir ())
69
68
self .cmd_opts .add_option (cmdoptions .progress_bar ())
70
69
71
70
self .cmd_opts .add_option (
Original file line number Diff line number Diff line change 2
2
import os
3
3
import re
4
4
import sys
5
- from os .path import exists
6
5
7
6
import pytest
8
7
@@ -240,35 +239,6 @@ def test_pip_wheel_fail(script, data):
240
239
assert result .returncode != 0
241
240
242
241
243
- def test_no_clean_option_blocks_cleaning_after_wheel (
244
- script ,
245
- data ,
246
- resolver_variant ,
247
- ):
248
- """
249
- Test --no-clean option blocks cleaning after wheel build
250
- """
251
- build = script .venv_path / "build"
252
- result = script .pip (
253
- "wheel" ,
254
- "--no-clean" ,
255
- "--no-index" ,
256
- "--build" ,
257
- build ,
258
- f"--find-links={ data .find_links } " ,
259
- "simple" ,
260
- expect_temp = True ,
261
- # TODO: allow_stderr_warning is used for the --build deprecation,
262
- # remove it when removing support for --build
263
- allow_stderr_warning = True ,
264
- )
265
-
266
- if resolver_variant == "legacy" :
267
- build = build / "simple"
268
- message = f"build/simple should still exist { result } "
269
- assert exists (build ), message
270
-
271
-
272
242
def test_pip_wheel_source_deps (script , data ):
273
243
"""
274
244
Test 'pip wheel' finds and builds source archive dependencies
You can’t perform that action at this time.
0 commit comments