138/138 symbols across 53 modules. New: IFSelect, Interface, XSControl, IGESData, STEPControl, IGESControl, RWStl, Graphic3d, NCollection, StdPrs. **The full app suite passes against this wheel: 1797 passed, 1 skipped — the same result as the stock wheel**, run from the parity venv. Getting there needed six methods that no static analysis could have found: `inventory --check` only sees symbols reached through an import, so a method called on an instance is invisible to it. The suite found them in one pass, and one of them (gp_Vec.Reverse, which every outward-normal probe calls) accounted for 311 of the 255 failing tests on its own. The others: gp_Trsf.SetMirror over a plane and a point, Geom_Surface.D0, BRep_Builder.MakeFace from a triangulation, MakePipeShell.SetMode with a fixed binormal, and MakeFace from a surface plus tolerance. Open question **S5 is settled: no**. The wheel does not need OCCT's share/ resources. test_inc3_io.py asserts no CSF_* variable is set and then round-trips STEP and IGES, reading the declared units back off both — which is exactly the resource-less container the question was about. The XSTEP readers keep the GIL, amending the blanket "file readers and writers" line in design.md's GIL policy. STEP and IGES traffic in process-global Interface_Static state, the IGES reader is documented as not thread-safe, and the app already serialises imports behind a lock — so holding it costs nothing and removes a class of question. RWStl, which touches no global state, releases. XSControl_Reader and IGESData are registered although the app imports neither: they are the reader base both concrete readers inherit their transfer surface from, and the model-to-global-section chain the IGES unit probe walks. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DfriM8XUkn7uYf5Dwe2xo6
47 lines
1.9 KiB
TOML
47 lines
1.9 KiB
TOML
[build-system]
|
|
requires = ["scikit-build-core>=0.11", "nanobind>=2.7"]
|
|
build-backend = "scikit_build_core.build"
|
|
|
|
[project]
|
|
name = "n3xd-ocp"
|
|
# <occt-version>.N, so the kernel a wheel wraps is readable from its version
|
|
# alone and occt_version() keeps reporting the truth. Iteration builds carry a
|
|
# .devN suffix: the registry never allows republishing a version, and its
|
|
# cleanup rule collects only the dev ones. CMake asserts the prefix matches
|
|
# the OCCT it found.
|
|
version = "7.9.3.1.dev4"
|
|
description = "nanobind bindings for the OpenCASCADE geometry kernel (drop-in OCP)"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
license = { text = "LGPL-2.1-only" }
|
|
authors = [{ name = "N3XD" }]
|
|
classifiers = [
|
|
"Private :: Do Not Upload",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: C++",
|
|
]
|
|
|
|
[project.urls]
|
|
Repository = "https://git.stroblme.de/N3XD/ocp"
|
|
|
|
[tool.scikit-build]
|
|
minimum-version = "0.11"
|
|
build-dir = "build/{wheel_tag}"
|
|
wheel.packages = ["python/OCP", "python/n3xd_ocp"]
|
|
# Stubs are generated during the build and gitignored, and file selection is
|
|
# git-based by default — so they must be re-included by hand or the wheel ships
|
|
# without the typing surface that retires the backend's ty suppression.
|
|
sdist.include = ["python/OCP/*.pyi", "python/n3xd_ocp/*.pyi"]
|
|
# abi3 from day one, matching the forge/assay convention: one wheel spans 3.12
|
|
# and 3.13, so the interpreter bump (roadmap 10D) needs no rebuild here.
|
|
wheel.py-api = "cp312"
|
|
# No sdist is ever published — it could not build without the OCCT builder
|
|
# image, and offering one would invite the production host (4 cores) to try.
|
|
# That is enforced by only ever building wheels (scripts/build_wheel.sh) rather
|
|
# than by an exclude rule here: scikit-build-core feeds sdist.exclude into the
|
|
# wheel's package-file mapping too, so excluding "*" silently ships a wheel
|
|
# with the compiled extension and none of the Python package.
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|