build-all.py - accomodate pyodide build system automatically

as it's the main way to build the wasm package
This commit is contained in:
Andrej730
2025-10-20 11:45:49 +05:00
parent f3837c6622
commit 2ec796f5ef
3 changed files with 10 additions and 16 deletions
+1 -2
View File
@@ -13,7 +13,7 @@ There are two ways to build pyodide ifcopenshell Python wrapper wheel.
- build ifcopenshell and its dependencies
- note that rerunning `pyodide build-recipes` will remove previous build folder and rebuild all dependencies.
The way to avoid it, if build fails, is to use `pyodide build-recipes-no-deps ifcopenshell --continue` instead.
- run `pyodide/setup.py` in `IfcOpenShell` root, producing a wheel in `IfcOpenShell/dist`
- run `setup.py` in `IfcOpenShell` root, producing a wheel in `IfcOpenShell/dist`
- copy that wheel to `packages/ifcopenshell/dist`
- `--install` it to current build envrionment
- copy the wheel next to `dist` folder (in root directory, next to `packages`)
@@ -29,6 +29,5 @@ since it's pure cmake without any additional moving parts.
- setup debug build environment using `source pyodide/debug_build_env.sh /path/to/pyodide_root`
- run `python nix/build-all.py -wasm -py-313` in `IfcOpenShell`
- it will produce Python package in `IfcOpenShell/ifcopenshell`
- move `IfcOpenShell/pyodide/setup.py` to `IfcOpenShell` root
- run `pyodide build`
- it will produce a wheel in `IfcOpenShell/dist`
-2
View File
@@ -9,8 +9,6 @@ source:
build:
script: |
BUILD_CFG=Release python nix/build-all.py -v --wasm --py313
mv package/ifcopenshell .
cp pyodide/setup.py .
about:
home: http://ifcopenshell.org