1
1
import sys
2
2
3
- from pip ._internal .cache import WheelCache
4
3
from pip ._internal .cli import cmdoptions
5
4
from pip ._internal .cli .base_command import Command
6
5
from pip ._internal .cli .status_codes import SUCCESS
7
- from pip ._internal .models .format_control import FormatControl
8
6
from pip ._internal .operations .freeze import freeze
9
7
from pip ._internal .utils .compat import stdlib_pkgs
10
8
from pip ._internal .utils .deprecation import deprecated
@@ -78,8 +76,6 @@ def add_options(self):
78
76
79
77
def run (self , options , args ):
80
78
# type: (Values, List[str]) -> int
81
- format_control = FormatControl (set (), set ())
82
- wheel_cache = WheelCache (options .cache_dir , format_control )
83
79
skip = set (stdlib_pkgs )
84
80
if not options .freeze_all :
85
81
skip .update (DEV_PKGS )
@@ -97,18 +93,15 @@ def run(self, options, args):
97
93
issue = 9069 ,
98
94
)
99
95
100
- freeze_kwargs = dict (
96
+ for line in freeze (
101
97
requirement = options .requirements ,
102
98
find_links = options .find_links ,
103
99
local_only = options .local ,
104
100
user_only = options .user ,
105
101
paths = options .path ,
106
102
isolated = options .isolated_mode ,
107
- wheel_cache = wheel_cache ,
108
103
skip = skip ,
109
104
exclude_editable = options .exclude_editable ,
110
- )
111
-
112
- for line in freeze (** freeze_kwargs ):
105
+ ):
113
106
sys .stdout .write (line + '\n ' )
114
107
return SUCCESS
0 commit comments