Skip to content

Remove compiled dependency on boost and spt3g.#212

Closed
tskisner wants to merge 5 commits intomasterfrom
boostless
Closed

Remove compiled dependency on boost and spt3g.#212
tskisner wants to merge 5 commits intomasterfrom
boostless

Conversation

@tskisner
Copy link
Member

  • Convert boost::python bindings to nanobind. Keep interfaces as close
    as possible to the existing ones. In particular, the direct CPython
    interface is NOT replaced with nanobind.ndarray<>. Mainly only
    nb::object and nb::cast are used.

  • Replace large, fragile, ad-hoc setup.py with direct running of cmake
    from pyproject.toml, using scikit-build-core.

  • Incorporate a local copy of boost/math/quaternion.hpp with trig
    functions removed to lift any dependency on other boost parts.

  • Clean up python imports (which had absolute imports of "so3g") and
    replace with relative imports within the package.

- Convert boost::python bindings to nanobind.  Keep interfaces as close
  as possible to the existing ones.  In particular, the direct CPython
  interface is NOT replaced with nanobind.ndarray<>.  Mainly only
  nb::object and nb::cast are used.

- Replace large, fragile, ad-hoc setup.py with direct running of cmake
  from pyproject.toml, using scikit-build-core.

- Incorporate a local copy of boost/math/quaternion.hpp with trig
  functions removed to lift any dependency on other boost parts.

- Clean up python imports (which had absolute imports of "so3g") and
  replace with relative imports within the package.
@tskisner tskisner mentioned this pull request Dec 4, 2025
@tskisner
Copy link
Member Author

tskisner commented Dec 4, 2025

Closing in favor of #229

@tskisner tskisner closed this Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant