File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
python/pip_install/tools/wheel_installer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ def _extract_wheel(
229
229
pip_data_exclude : List [str ],
230
230
enable_implicit_namespace_pkgs : bool ,
231
231
repo_prefix : str ,
232
+ incremental_dir : Path = Path ("." ),
232
233
annotation : Optional [annotation .Annotation ] = None ,
233
234
) -> None :
234
235
"""Extracts wheel into given directory and creates py_library and filegroup targets.
@@ -246,11 +247,10 @@ def _extract_wheel(
246
247
"""
247
248
248
249
whl = wheel .Wheel (wheel_file )
249
- directory = Path ("." )
250
- whl .unzip (directory )
250
+ whl .unzip (incremental_dir )
251
251
252
252
if not enable_implicit_namespace_pkgs :
253
- _setup_namespace_pkg_compatibility (directory )
253
+ _setup_namespace_pkg_compatibility (incremental_dir )
254
254
255
255
extras_requested = extras [whl .name ] if whl .name in extras else set ()
256
256
# Packages may create dependency cycles when specifying optional-dependencies / 'extras'.
You can’t perform that action at this time.
0 commit comments