From ecd328e42e6549177b8eba12d1b92d9f5f090ac1 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 28 Aug 2026 14:07:40 +0500 Subject: [PATCH] package-zip-archives: skip previously installed runtime deps --- nix/package-zip-archives.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/package-zip-archives.py b/nix/package-zip-archives.py index 131449fdf6..09ffbe6977 100644 --- a/nix/package-zip-archives.py +++ b/nix/package-zip-archives.py @@ -129,6 +129,12 @@ def stage_runtime_payload(install_dir: Path, dest: Path, *, include_geometry_wri if not include_geometry_writers and runtime_file.name.startswith("ifcopenshell.geometry.writer."): continue dest_file = dest / runtime_file.name + # Currently there's an overlap between dependencies installations. + # E.g. libraries from occt are installed to both `ifcopenshell/lib` + # (as part of `ifcopenshell_deploy_qt_runtime`) + # and to `occt-shared/lib`. So we skip previously installed binaries. + if dest_file.exists(): + continue shutil.copy(runtime_file, dest_file, follow_symlinks=False) runtime_files.append(dest_file) if not is_platform("MAC"):