| commit | 2299445c913a801ae319df90af83978732dff268 | [log] [tgz] |
|---|---|---|
| author | brandjon <brandjon@google.com> | Tue Mar 26 13:37:31 2019 -0700 |
| committer | Copybara-Service <copybara-worker@google.com> | Tue Mar 26 13:40:39 2019 -0700 |
| tree | 65f79d1f67600072824b72b92abea10c15a6f963 | |
| parent | fa161fa85d49f8b054747078ae093aeb77fdf071 [diff] |
Implement autodetecting Python toolchain
This replaces the stub default Python toolchain with one that actually locates the target platform's Python interpreter at runtime. Try it out with
bazel build //some_py_binary --experimental_use_python_toolchains
and note that, unlike before (#4815), the correct Python interpreter gets invoked by default regardless of whether you specify `--python_version=PY2` or `--python_version=PY3`.
This toolchain is only intended as a last resort, if the user doesn't define and register a better toolchain (that satisfies the target platform constraints).
Work toward #7375 and #4815. Follow-up work needed to add a test (#7843) and windows support (#7844).
RELNOTES: None
PiperOrigin-RevId: 240417315
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.