8000 . · ahans/rules_python@089f5e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 089f5e1

Browse files
committed
.
1 parent b5d4e83 commit 089f5e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/pip_install/tools/wheel_installer/wheel_installer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ def _extract_wheel(
229229
pip_data_exclude: List[str],
230230
enable_implicit_namespace_pkgs: bool,
231231
repo_prefix: str,
232+
incremental_dir: Path = Path("."),
232233
annotation: Optional[annotation.Annotation] = None,
233234
) -> None:
234235
"""Extracts wheel into given directory and creates py_library and filegroup targets.
@@ -246,11 +247,10 @@ def _extract_wheel(
246247
"""
247248

248249
whl = wheel.Wheel(wheel_file)
249-
directory = Path(".")
250-
whl.unzip(directory)
250+
whl.unzip(incremental_dir)
251251

252252
if not enable_implicit_namespace_pkgs:
253-
_setup_namespace_pkg_compatibility(directory)
253+
_setup_namespace_pkg_compatibility(incremental_dir)
254254

255255
extras_requested = extras[whl.name] if whl.name in extras else set()
256256
# Packages may create dependency cycles when specifying optional-dependencies / 'extras'.

0 commit comments

Comments
 (0)
0