9
9
from pip ._internal .models .format_control import FormatControl
10
10
from pip ._internal .operations .freeze import freeze
11
11
from pip ._internal .utils .compat import stdlib_pkgs
12
+ from pip ._internal .utils .deprecation import deprecated
12
13
from pip ._internal .utils .typing import MYPY_CHECK_RUNNING
13
14
14
- DEV_PKGS = {'pip' , 'setuptools' , 'distribute' , 'wheel' }
15
-
16
15
if MYPY_CHECK_RUNNING :
17
16
from optparse import Values
18
17
from typing import List
@@ -64,10 +63,9 @@ def add_options(self):
64
63
self .cmd_opts .add_option (cmdoptions .list_path ())
65
64
self .cmd_opts .add_option (
66
65
'--all' ,
67
- dest = 'freeze_all ' ,
66
+ dest = 'freeze_all_used ' ,
68
67
action = 'store_true' ,
69
- help = 'Do not skip these packages in the output:'
70
- ' {}' .format (', ' .join (DEV_PKGS )))
68
+ help = 'Deprecated - Does nothing.' )
71
69
self .cmd_opts .add_option (
72
70
'--exclude-editable' ,
73
71
dest = 'exclude_editable' ,
@@ -80,9 +78,12 @@ def run(self, options, args):
80
78
# type: (Values, List[str]) -> int
81
79
format_control = FormatControl (set (), set ())
82
80
wheel_cache = WheelCache (options .cache_dir , format_control )
83
- skip = set (stdlib_pkgs )
84
- if not options .freeze_all :
85
- skip .update (DEV_PKGS )
81
+ if options .freeze_all_used :
82
+ deprecated (
83
+ "--all is now the default behavior and does nothing" ,
84
+ None ,
85
+ gone_in = "23.3" ,
86
+ )
86
87
87
88
cmdoptions .check_list_path_option (options )
88
89
@@ -94,7 +95,7 @@ def run(self, options, args):
94
95
paths = options .path ,
95
96
isolated = options .isolated_mode ,
96
97
wheel_cache = wheel_cache ,
97
- skip = skip ,
98
+ skip = set ( stdlib_pkgs ) ,
98
99
exclude_editable = options .exclude_editable ,
99
100
)
100
101
0 commit comments