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

17 views
Skip to first unread message

soberhippie

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

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
Forward
0 new messages