Pass --isolated to pip wheel invocation (#389)
This fixes the same issue as
https://github.com/bazelbuild/rules_python/pull/232 but in another
place.
Co-authored-by: Jonathon Belotti <jonathon@canva.com>
diff --git a/python/pip_install/extract_wheels/__init__.py b/python/pip_install/extract_wheels/__init__.py
index 879b676..fe8b8ef 100644
--- a/python/pip_install/extract_wheels/__init__.py
+++ b/python/pip_install/extract_wheels/__init__.py
@@ -79,7 +79,7 @@
)
args = parser.parse_args()
- pip_args = [sys.executable, "-m", "pip", "wheel", "-r", args.requirements]
+ pip_args = [sys.executable, "-m", "pip", "--isolated", "wheel", "-r", args.requirements]
if args.extra_pip_args:
pip_args += json.loads(args.extra_pip_args)["args"]