Ship the split shared libraries in the Python wheel

This commit is contained in:
Petru Conduraru
2026-08-30 09:53:46 +03:00
committed by Thomas Krijnen
parent 1a03fd7df1
commit c80569ecc7
+8
View File
@@ -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)