-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force loading Python rules from rules_python repo #8893
Comments
The Python rules API consists of the following symbols:
The two main goals are to
In the case of 2, the main priority right now is to prohibit access to the native rules, but not necessarily the other symbols right now, since that would in general require implementing new mechanisms for whitelisting. |
This replaces some uses of @bazel_tools//tools/python/... in user-visible strings with the appropriate @rules_python-based paths. Work toward #8893. RELNOTES: None PiperOrigin-RevId: 261197893
Update: We will be deferring this until Bazel 2.0. In the meantime, projects can and should continue to migrate to using rules_python and not rely directly on bundled Python rules APIs. Note that currently migration is automated with buildifier except for adding the entry to the WORKSPACE file. |
Soo we are at Bazel 3.0 by now. Any update on when this could happen? |
@lberki The Python runfiles libraries are in a weird state: Their usage instructions recommend to load them from The actual |
Similar to #8741 and #7643, force users to load bazelbuild/rules_python in order to access the built-in Python rules. This allows us to migrate these rules from native to Starlark without necessarily forcing users to migrate every step of the way. The incompatible change flag will be
--incompatible_load_python_rules_from_bzl
.Checklist:
@rules_python
@rules_python
instead of@bazel_tools
The text was updated successfully, but these errors were encountered: