cxx_python_extension rule overview
The
cxx_python_extension() rule builds a Python module from a single .cpp file. It functions as a C/C++ library variant where the module name is derived from the base_module parameter and the rule name. The resulting binary is a Python extension that can be imported directly into Python code.