mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 14:28:12 +00:00
Ship the split shared libraries in the Python wheel
This commit is contained in:
committed by
Thomas Krijnen
parent
1a03fd7df1
commit
c80569ecc7
@@ -120,6 +120,10 @@ endif
|
|||||||
cd dist/working && wget $(IOS_URL)
|
cd dist/working && wget $(IOS_URL)
|
||||||
cd dist/working && unzip ifcopenshell-python*
|
cd dist/working && unzip ifcopenshell-python*
|
||||||
cp -r dist/working/ifcopenshell/*ifcopenshell_wrapper* dist/ifcopenshell/
|
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
|
rm -rf dist/working
|
||||||
$(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' dist/ifcopenshell/__init__.py
|
$(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' dist/ifcopenshell/__init__.py
|
||||||
cd dist && zip -r ifcopenshell-python-$(VERSION)-$(PYVERSION)-$(PLATFORM).zip ifcopenshell
|
cd dist && zip -r ifcopenshell-python-$(VERSION)-$(PYVERSION)-$(PLATFORM).zip ifcopenshell
|
||||||
@@ -138,6 +142,10 @@ endif
|
|||||||
mkdir build/botbuild
|
mkdir build/botbuild
|
||||||
cd build/botbuild && wget $(IOS_URL) && unzip ifcopenshell-python*
|
cd build/botbuild && wget $(IOS_URL) && unzip ifcopenshell-python*
|
||||||
cp -r build/botbuild/ifcopenshell/*ifcopenshell_wrapper* build/ifcopenshell/
|
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 ../../README.md build/
|
||||||
cp pyproject.toml build/
|
cp pyproject.toml build/
|
||||||
ifeq ($(IS_STABLE), TRUE)
|
ifeq ($(IS_STABLE), TRUE)
|
||||||
|
|||||||
Reference in New Issue
Block a user