commit | db063a85a7196747cacf6bed44944021108a7ff8 | [log] [tgz] |
---|---|---|
author | brandjon <brandjon@google.com> | Tue Jul 30 21:41:37 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jul 30 21:42:42 2019 -0700 |
tree | 8433cacc6e3cb96ff5e88be7b078a3aa3ee53450 | |
parent | a9cdc3dd2355d1de382e40f7b4692e345ab310d0 [diff] |
Add internal macros and partially migrate Bazel for upcoming change This adds `@bazel_tools//tools/python:private/defs.bzl`, which defines macro wrappers around the four native Python rules (`py_library`, `py_binary`, `py_test`, `py_runtime`). These wrappers simulate the behavior of `@rules_python//python:defs.bzl`, so that they are compatible with the upcoming `--incompatible_load_python_rules_from_bzl` flag. This change also updates many direct uses of the native Python rules to use the wrappers instead. However, changes to the third_party/ directory have to be in a separate commit. The new macros should only be used by Bazel itself. All external users should use @rules_python instead. I'm omitting updating src/test/py/bazel/testdata/runfiles_test/*/BUILD.mock files because they appear to be tests that shouldn't complain until the flag is flipped, and I'm not sure that adding a load won't break them. Also not updating the examples/ dir for similar reasons. Work toward #9006. RELNOTES: None PiperOrigin-RevId: 260858287
{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.