nicholasjng / nanobind-bazel

Bazel defs and rules for building Python projects with nanobind extensions.
Apache License 2.0
6 stars 0 forks source link

Add PyPy support #34

Open nicholasjng opened 3 weeks ago

nicholasjng commented 3 weeks ago

nanobind supports PyPy bindings builds, and so should nanobind-bazel.

Currently, the CPython header dep is hardcoded, but building with PyPy instead should work similarly.

To the best of my knowledge, rules_python has no PyPy support, so users are (currently) on their own when supplying the headers. It's possible today to monkey-patch the Python building the wheel with a Bazel toolchain declaration, which could be a way forward here.

Needs investigation on my part into how to build C++ extensions for PyPy.

nicholasjng commented 3 weeks ago

Follow-up of #1.