-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[env python] failed on MacOS 12.3, as python2 removed #660
Comments
Thanks for your issue report. Unfortunately, by default The workarounds are:
|
Unfortunately, rules_apple does not seem to export the PATH set by the user (cf. run.use_default_shell_env) so this can not work
|
Same root cause as: #691 |
A solution showcase py_runtime(
name = "python3_runtime",
files = ["@python_interpreter//:files"],
interpreter = "@python_interpreter//:interpreter",
python_version = "PY3",
# https://github.com/bazelbuild/bazel/pull/11434
# https://github.com/bazelbuild/rules_python/issues/660
stub_shebang = select({
# fix macos>=12.3 without python
"@platforms//os:macos": "#!/usr/bin/env python3",
"//conditions:default": "",
}),
visibility = ["//visibility:public"],
) |
This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?" |
🐞 bug report
Affected Rule
The issue is caused by the rule:Is this a regression?
Yes, the previous version in which this bug was not present was: ....MacOS 12.2.1
Description
A clear and concise description of the problem...🔬 Minimal Reproduction
OS: MacOS 12.3
Bazel: 5.0.0
🔥 Exception or Error
testlogs/py_import_test/test.log
:🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: