From 54e6fe6ab5c3bbe20cba79c253f0dee88ab22464 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Fri, 11 Nov 2022 21:48:52 -0800 Subject: [PATCH] ci: try disabling parallel pip installs on windows --- my/core/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/my/core/__main__.py b/my/core/__main__.py index 4dfc021..d8e9ebd 100644 --- a/my/core/__main__.py +++ b/my/core/__main__.py @@ -376,7 +376,9 @@ def module_install(*, user: bool, module: Sequence[str], parallel: bool=False) - ] cmds = [] - if parallel: + # disable parallel on windows, sometimes throws a + # '[WinError 32] The process cannot access the file because it is being used by another process' + if parallel and sys.platform not in ['win32', 'cygwin']: # todo not really sure if it's safe to install in parallel like this # but definitely doesn't hurt to experiment for e.g. mypy pipelines # pip has '--use-feature=fast-deps', but it doesn't really work