From 087f24185fc6daeba4841c91e8e12e443cb588e3 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 26 Aug 2026 12:25:07 +0500 Subject: [PATCH] package-zip-archives: consider installed qt libs to `install/ifcopenshell/lib` --- nix/package-zip-archives.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix/package-zip-archives.py b/nix/package-zip-archives.py index f3b74fecbc..fa688ac14e 100644 --- a/nix/package-zip-archives.py +++ b/nix/package-zip-archives.py @@ -119,7 +119,13 @@ def stage_qt_runtime_payload(exe_path: Path, dest: Path, qt_dir: Path | None) -> # Copy all QT libs to `dest`. for lib_file in (qt_dir / "lib").iterdir(): if is_so_file(lib_file): - shutil.copy(lib_file, dest / lib_file.name, follow_symlinks=False) + dest_file = dest / lib_file.name + # Currently we install some qt libs to `install/ifcopenshell/lib` too, + # so there's a bit of overlap beteen stage_runtime and stage_qt_runtime, + # hence the skip. + if dest_file.exists(): + continue + shutil.copy(lib_file, dest_file, follow_symlinks=False) ensure_soname_links(dest) # Copy QT plugins.