From c80569ecc7f447efe08c013863baaf8aad5675af Mon Sep 17 00:00:00 2001 From: Petru Conduraru Date: Sun, 30 Aug 2026 09:53:46 +0300 Subject: [PATCH] Ship the split shared libraries in the Python wheel --- src/ifcopenshell-python/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ifcopenshell-python/Makefile b/src/ifcopenshell-python/Makefile index 2ef6c74b00..6f29f5fe2e 100644 --- a/src/ifcopenshell-python/Makefile +++ b/src/ifcopenshell-python/Makefile @@ -120,6 +120,10 @@ endif cd dist/working && wget $(IOS_URL) cd dist/working && unzip ifcopenshell-python* cp -r dist/working/ifcopenshell/*ifcopenshell_wrapper* dist/ifcopenshell/ + # v0.9.0 splits IfcOpenShell into shared libraries loaded from next to the + # wrapper (libifcopenshell.parse, ifcopenshell_document_rdb, ...). Copy + # them too, otherwise the wrapper fails to import. See #9364. + find dist/working/ifcopenshell -maxdepth 1 \( -name '*.so' -o -name '*.so.*' -o -name '*.dylib' -o -name '*.dll' \) -exec cp {} dist/ifcopenshell/ \; rm -rf dist/working $(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' dist/ifcopenshell/__init__.py cd dist && zip -r ifcopenshell-python-$(VERSION)-$(PYVERSION)-$(PLATFORM).zip ifcopenshell @@ -138,6 +142,10 @@ endif mkdir build/botbuild cd build/botbuild && wget $(IOS_URL) && unzip ifcopenshell-python* cp -r build/botbuild/ifcopenshell/*ifcopenshell_wrapper* build/ifcopenshell/ + # v0.9.0 splits IfcOpenShell into shared libraries loaded from next to the + # wrapper (libifcopenshell.parse, ifcopenshell_document_rdb, ...). Copy + # them too, otherwise the wrapper fails to import. See #9364. + find build/botbuild/ifcopenshell -maxdepth 1 \( -name '*.so' -o -name '*.so.*' -o -name '*.dylib' -o -name '*.dll' \) -exec cp {} build/ifcopenshell/ \; cp ../../README.md build/ cp pyproject.toml build/ ifeq ($(IS_STABLE), TRUE)