commit | 754dddcd351e66010705043f1faa12d9f3b020b3 | [log] [tgz] |
---|---|---|
author | brandjon <brandjon@google.com> | Wed Dec 19 14:39:14 2018 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Wed Dec 19 14:41:02 2018 -0800 |
tree | 92aa176cb3dff6719dc734bb49704e125604d2bd | |
parent | b1b13bc03b9765ec6221153b6344e89a40a9e0a6 [diff] |
Add a Starlark flag to select() on to get the Python mode This adds @bazel_tools//tools/python:python_version, whose value is always either "PY2" or "PY3" (never undefined), and which works regardless of the value of --experimental_better_python_version_mixing. Users who need to select() on the Python version should use this label in their `config_setting`s. Users should not select() on "force_python" or "python_version" because these flags may not always represent the true Python version state, and can lead to action conflict errors. Work toward #6583. RELNOTES: None PiperOrigin-RevId: 226235967
{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.