fix: Fix whl_library in bazel vendor mode#3096
Conversation
f80d42f to
f66d15a
Compare
- Added PYTHONHOME to whl_library execution enviornment. Without it the python interpretter is getting confused where it's running from when bazel --vendor_dir is used. PYTHONHOME will be aquired by running python in isolated mode, and the sys.prefix queried. - In _get_toolchain_unix_cflags, the real path for python is used instead of the symlink.
f66d15a to
95ff01d
Compare
|
Hi @aignas, with regards to the tests, the bug this PR resolves occurs when there is a "bazel clean --expunge" between the "bazel vendor" and the "bazel build" commands. Is it possible to update the "integration_test_bzlmod_ubuntu_vendor" with a "bazel clean" ? I am not sure how impactful that would be on the CI performance.
|
|
I would like to avoid adding |
Resolves #3079