Installing python dependencies errors out with libstd.h file not found

Skip to first unread message


May 30, 2023, 5:26:34 AMMay 30
to bazel-discuss

We are transitioning our python project to Bazel, but we ran into a problem with one of the libs we are using. When python installs this lib, it compiles it from the C source code, which works fine without Bazel, but when run _with_ bazel, it errors out with: `/long/path/python3.11/Python.h:23:23: Fatal error: 'stdlib.h' file not found`.

What I tried to do to fix this was follow the tutorial on adding a C++ toolchain, but it did not help. 

The python library in question is `confluent-kafka`, but it doesn't seem to be relevant. 

How can we make the stdlib headers available to the build system?

Reply all
Reply to author
0 new messages