I have seen build examples with setuptools, cmake in https://pybind11.readthedocs.io/en/stable/compiling.html. Could provide a bazel build example to build usable python .whl?