rules_foreign_cc icon indicating copy to clipboard operation
rules_foreign_cc copied to clipboard

Issue building with system Python in MacOS Monterey 12.4

Open frankyn opened this issue 2 years ago • 0 comments

In MacOS Monterey 12.4, python is no longer a command that's installed by default; only python3. When building MySQL through rules_foreign_cc, I get a python not found based on this call https://github.com/bazelbuild/rules_foreign_cc/blob/main/foreign_cc/private/framework/toolchains/macos_commands.bzl#L255.

I wasn't sure how to provide Bazel with an alias for python during this build script step; so I ended up forking this repo and modifying the line.

If there's a best practice that I missed, PLMK, I'm new to Bazel and very new to rules_foreign_cc.

Thank you for your consideration.

frankyn avatar Aug 28 '22 04:08 frankyn