nicholasjng / nanobind-bazel

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

Add PyPy support #34

Open nicholasjng opened 5 months ago

nicholasjng commented 5 months 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 5 months ago

Follow-up of #1.