commit | b06400c57b463335c0cb625de4c7c4ba8c262b64 | [log] [tgz] |
---|---|---|
author | brandjon <brandjon@google.com> | Thu Jun 20 09:30:31 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Jun 20 09:31:49 2019 -0700 |
tree | 25a2aec4741a0f70c4c8c6ab66b8f944f9be33ac | |
parent | 89cd56c1aa8440047f624bcf9596721e5561aab9 [diff] |
Expose `PyRuntimeInfo` from `py_binary` and `py_test` rules This allows targets that depend on an executable Python target to see what runtime was chosen from the toolchain. The returned `PyRuntimeInfo` provider is the same type of value as what's returned by the `py_runtime` rule. For example, the path to the system interpreter (if not using an in-workspace interpreter) can be accessed from a dependency as `mydep[PyRuntimeInfo].interpreter_path`. The Python major version for a target can also indirectly be obtained from the version of its runtime, as `mydep[PyRuntimeInfo].python_version`. Fixes #7805. RELNOTES: None PiperOrigin-RevId: 254212408
{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.