From 6206603e9540424943bb9300592580db79cb3bce Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Tue, 19 Oct 2021 16:04:50 +0200 Subject: [PATCH] fix missing utilities in Windows wheels Some utilities, like `rcc.exe`, were getting filtered-out: handle the fact that those are "not a Qt executable", as reported by `windeployqt`, but we still want to include them. --- build.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 2123549..a728cbd 100644 --- a/build.py +++ b/build.py @@ -1194,11 +1194,15 @@ def windeployqt_list_source( target, ], stdout=subprocess.PIPE, + stderr=subprocess.PIPE, # ugh, 3.5 # encoding='utf-8', ) except subprocess.CalledProcessError as e: - raise DependencyCollectionError(target) from e + if 'does not seem to be a Qt executable' in e.stderr.decode('utf-8'): + # This can happen with some utilities like + # `rcc.exe`, which we still want to include. + return [] paths = [ pathlib.Path(line)