commit | 7f495315749478e75a3424726cc273a535b7c3b8 | [log] [tgz] |
---|---|---|
author | brandjon <brandjon@google.com> | Tue May 21 09:20:01 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue May 21 09:21:14 2019 -0700 |
tree | 4a9142af26ee6b827ff361ce3ad05e25241c27e2 | |
parent | 0ff19c6d0adf3c0df94fff59ca3bd13cbcf99897 [diff] |
Fix the autodetecting Python toolchain on Mac See bazelbuild/continuous-integration#578 for context. The gist of it is that when PATH is not set (as happens when a binary using this toolchain is used as a tool from Starlark), the shell comes up with its own PATH to run the pywrapper script. However, it does not necessarily export this PATH, causing "which" to misbehave and fail to locate a Python interpreter. The fix is to add "export PATH" and a regression test. Fixes bazelbuild/continuous-integration#578, work toward #7899. RELNOTES: None PiperOrigin-RevId: 249263849
{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.