diff options
| author | Adrian Herrmann <adrian.herrmann@qt.io> | 2022-12-22 15:05:46 +0100 |
|---|---|---|
| committer | Adrian Herrmann <adrian.herrmann@qt.io> | 2023-01-12 11:24:30 +0100 |
| commit | 9d45c6968c06849b58428d8c5531a63a303ad4ac (patch) | |
| tree | a33219a9cff987f57ca0d88a749d663f7238658e | |
| parent | 3ab0ae305fa18b5f076588fdbbf55ac03210f008 (diff) | |
build_scripts: Fix missing MSVC DLLs in PySide dir
Fix a problem where the MSVC DLLs would only be copied into the
shiboken6 directory of the wheel and not the PySide6 directory, leading
to missing DLL errors on clean Windows installs.
Pick-to: 6.2 5.15
Fixes: PYSIDE-2162
Change-Id: I4c07275906a292e4f314ab68231148664af70c4e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| -rw-r--r-- | build_scripts/platforms/windows_desktop.py | 29 | ||||
| -rw-r--r-- | build_scripts/wheel_files.py | 3 |
2 files changed, 17 insertions, 15 deletions
diff --git a/build_scripts/platforms/windows_desktop.py b/build_scripts/platforms/windows_desktop.py index 8045ae56e..adf4a069e 100644 --- a/build_scripts/platforms/windows_desktop.py +++ b/build_scripts/platforms/windows_desktop.py @@ -200,26 +200,27 @@ def prepare_packages_win32(pyside_build, _vars): copy_msvc_redist_files(destination_dir) +# MSVC redistributable file list. +msvc_redist = [ + "concrt140.dll", + "msvcp140.dll", + "vcamp140.dll", + "vccorlib140.dll", + "vcomp140.dll", + "vcruntime140.dll", + "vcruntime140_1.dll", + "msvcp140_1.dll", + "msvcp140_2.dll", + "msvcp140_codecvt_ids.dll" +] + + def copy_msvc_redist_files(destination_dir): in_coin = os.environ.get('COIN_LAUNCH_PARAMETERS', None) if in_coin is None: print("Qt dependency DLLs (MSVC redist) will not be copied.") return - # MSVC redistributable file list. - msvc_redist = [ - "concrt140.dll", - "msvcp140.dll", - "vcamp140.dll", - "vccorlib140.dll", - "vcomp140.dll", - "vcruntime140.dll", - "vcruntime140_1.dll", - "msvcp140_1.dll", - "msvcp140_2.dll", - "msvcp140_codecvt_ids.dll" - ] - # Make a directory where the files should be extracted. if not destination_dir.exists(): destination_dir.mkdir(parents=True) diff --git a/build_scripts/wheel_files.py b/build_scripts/wheel_files.py index 9c7caf5c4..b8caf32ab 100644 --- a/build_scripts/wheel_files.py +++ b/build_scripts/wheel_files.py @@ -214,9 +214,10 @@ def module_QtCore() -> ModuleData: data.extra_files.append("qt.conf") data.extra_files.append("rcc.exe") data.extra_files.append("qtdiag.exe") - data.extra_files.append("d3dcompiler*") data.extra_files.append("pyside6.*.lib") data.extra_files.append("resources/icudtl.dat") + from build_scripts.platforms.windows_desktop import msvc_redist + data.extra_files.extend(msvc_redist) else: data.lib.append("libpyside6.*") if sys.platform == "darwin": |
