You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tchernobog opened this issue
Nov 14, 2020
· 4 comments
Labels
P2We'll consider working on this in future. (Assignee optional)team-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: bug
Several distributions have started removing python2 support as it is moving to EOL. This means there is no /usr/bin/python anymore, only /usr/bin/python3.
Feature requests: what underlying problem are you trying to solve with this feature?
Compiling anything that relies on python scripts using Bazel on a Linux distribution released in the past few months.
At least Debian unstable and Ubuntu 20.04 are affected.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
It's not just building bazel itself, it's running anypy_binary rule as the stub (src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt) uses /usr/bin/env python to locate the system python before it can even resolve the actual toolchain.
It seems like it might make sense for the stub to use the configured python toolchain's python interpreter, and not depend on the host python at all.
This bug prevents a lot of bazel rules from working on Ubuntu 20.10.
P2We'll consider working on this in future. (Assignee optional)team-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: bug
Description of the problem / feature request:
Several distributions have started removing python2 support as it is moving to EOL. This means there is no
/usr/bin/python
anymore, only/usr/bin/python3
.In this scenario, Bazel itself fails to build.
The same problem also happens with many other packages in projects other than bazel, making it a critical issue.
Examples include any project using https://github.com/bazelbuild/rules_docker, https://github.com/bazelbuild/rules_k8s, etc.
Feature requests: what underlying problem are you trying to solve with this feature?
Compiling anything that relies on python scripts using Bazel on a Linux distribution released in the past few months.
At least Debian unstable and Ubuntu 20.04 are affected.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazel build //src:bazel-bin
What operating system are you running Bazel on?
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: unstable
Codename: sid
What's the output of
bazel info release
?release 3.7.0
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?https://github.com/bazelbuild/bazel.git
ca6209f
ca6209f
Have you found anything relevant by searching the web?
#11554 seems related to the same issue.
The text was updated successfully, but these errors were encountered: