Title: v0.9.0 win64 build artifacts omit all runtime plugin DLLs (parse_schema_*, geometry_mapping_*) — schema creation and geometry fail · Issue #9301 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: v0.9.0 win64 build artifacts omit all runtime plugin DLLs (parse_schema_*, geometry_mapping_*) — schema creation and geometry fail · Issue #9301 · IfcOpenShell/IfcOpenShell
X Title: v0.9.0 win64 build artifacts omit all runtime plugin DLLs (parse_schema_*, geometry_mapping_*) — schema creation and geometry fail · Issue #9301 · IfcOpenShell/IfcOpenShell
Description: Summary The v0.9.0alpha0 win64 artifacts on builds.ifcopenshell.org are missing every load-by-name runtime plugin DLL of the new modular architecture (ifcopenshell_parse_schema_ifc*.dll, ifcopenshell_geometry_mapping_ifc*.dll, extra kern...
Open Graph Description: Summary The v0.9.0alpha0 win64 artifacts on builds.ifcopenshell.org are missing every load-by-name runtime plugin DLL of the new modular architecture (ifcopenshell_parse_schema_ifc*.dll, ifcopenshe...
X Description: Summary The v0.9.0alpha0 win64 artifacts on builds.ifcopenshell.org are missing every load-by-name runtime plugin DLL of the new modular architecture (ifcopenshell_parse_schema_ifc*.dll, ifcopenshe...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9301
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"v0.9.0 win64 build artifacts omit all runtime plugin DLLs (parse_schema_*, geometry_mapping_*) — schema creation and geometry fail","articleBody":"## Summary\n\nThe `v0.9.0alpha0` win64 artifacts on builds.ifcopenshell.org are missing every load-by-name runtime plugin DLL of the new modular architecture (`ifcopenshell_parse_schema_ifc*.dll`, `ifcopenshell_geometry_mapping_ifc*.dll`, extra kernels, document codecs, format writers). As shipped, `ifcopenshell-python-311-v0.9.0alpha0-83fc219-win64.zip` cannot create or open a model:\n\n```\n>>> import ifcopenshell\n>>> ifcopenshell.file(schema=\"IFC4X3_ADD2\")\nRuntimeError: No schema named IFC4X3_ADD2\n```\n\nAfter manually supplying the `ifcopenshell_parse_schema_*.dll` set (lifted from the BonsaiViewer win64 zip, same commit), parsing/authoring works but all geometry fails:\n\n```\nRuntimeError: No geometry mapping registered for ifc4x3_add2\n```\n\nNo win64 artifact contains `ifcopenshell_geometry_mapping_*.dll` at all (checked ifcopenshell-python-311, BonsaiViewer, IfcConvert, IfcGeomServer at `83fc219`).\n\n## Evidence\n\nBinaries in `ifcopenshell-python-311-v0.9.0alpha0-83fc219-win64.zip` (7 total):\n\n```\n_ifcopenshell_wrapper.cp311-win_amd64.pyd\nifcopenshell.geometry.dll\nifcopenshell.geometry.writer.dll\nifcopenshell.parse.dll\nifcopenshell.plugin.dll\nifcopenshell_document_rdb.dll\nifcopenshell_geometry_kernel_opencascade.dll\n```\n\nThe linux64 zip at the same commit is complete (~40 plugin `.so` files: 8× `ifcopenshell_parse_schema_*`, 8× `ifcopenshell_geometry_mapping_*`, 5 kernels, per-schema document json/xml codecs, geometry format writers, trees). The pyodide modular zip likewise ships `parse_schema` and `geometry_mapping` wheels. The gap is win-specific.\n\n## Root cause\n\n`win/build-all-win.py` collects runtime plugins with a dot-prefix filter, in both `archive_executables` and `archive_python_package`:\n\n```python\nifc_runtime_plugins = {\n d\n for d in (set(dlls) - dependencies)\n if d.name.startswith(\"ifcopenshell.\") and not d.name.startswith(\"ifcopenshell.geometry.writer.\")\n}\n```\n\nBut runtime plugins are underscore-named: `src/plugin/plugin.cpp` (`decorated_basename`) canonically prepends `ifcopenshell_`, and the CMake plugin targets set `OUTPUT_NAME \"ifcopenshell_parse_schema_ifc${schema}\"` / `\"ifcopenshell_geometry_mapping_ifc${schema}\"`. `startswith(\"ifcopenshell.\")` (trailing dot) only matches the core shared libraries, so every load-by-name plugin is silently dropped from every zip.\n\nThe two underscore-named DLLs that *do* appear in the python zip (`ifcopenshell_document_rdb.dll`, `ifcopenshell_geometry_kernel_opencascade.dll`) appear to get in via `trace_runtime_dependencies` (dumpbin) as direct link-time dependencies, not via the plugin filter — which also explains why the BonsaiViewer zip contains the `parse_schema` DLLs (linked by the exe) but no `geometry_mapping` DLLs (loaded purely by name, invisible to dumpbin — as the comment in `archive_executables` itself notes).\n\n## Suggested fix\n\nAdmit the underscore prefix in both collection sites:\n\n```python\nif d.name.startswith((\"ifcopenshell.\", \"ifcopenshell_\")) and not d.name.startswith(\"ifcopenshell.geometry.writer.\")\n```\n\nwin-arm64 uses the same script and is presumably affected identically.\n\n## Environment\n\n- Artifacts: `v0.9.0alpha0-83fc219` win64 from https://builds.ifcopenshell.org/\n- Windows 11, Python 3.11 (Blender 5.0 bundled)\n- Found while porting Bonsai civil-engineering work onto the v0.9.0 branch; with schemas manually supplied everything non-geometry passes our test suite, so the wrapper itself is fine — it's purely packaging. Happy to test fixed artifacts.","author":{"url":"https://github.com/DesertSpringsCivil","@type":"Person","name":"DesertSpringsCivil"},"datePublished":"2026-08-14T21:10:44Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9301"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a0aad588-1172-776e-61a8-687b1fcb49d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E816:5F1E9:127201:18BF93:6B04809B |
| html-safe-nonce | 205dc13750af847c8a75a7245d5aa36ca61f3bacd2f1a346f62fedbe99450424 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODE2OjVGMUU5OjEyNzIwMToxOEJGOTM6NkIwNDgwOUIiLCJ2aXNpdG9yX2lkIjoiNzg4Mzc4ODA3NzA4MzQyNjk3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5b0f4e0be2a68f90a46ee0049437d2f60842a26f863f8604bc10564fcd254ce9 |
| hovercard-subject-tag | issue:5155672063 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/9301/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c4a08932a0847e2c2ac78fee3c26e535cac07656a2ef67362cfc3df2ae33ef8e/IfcOpenShell/IfcOpenShell/issues/9301 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c4a08932a0847e2c2ac78fee3c26e535cac07656a2ef67362cfc3df2ae33ef8e/IfcOpenShell/IfcOpenShell/issues/9301 |
| og:image:alt | Summary The v0.9.0alpha0 win64 artifacts on builds.ifcopenshell.org are missing every load-by-name runtime plugin DLL of the new modular architecture (ifcopenshell_parse_schema_ifc*.dll, ifcopenshe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DesertSpringsCivil |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width