Closed as duplicate of#2548
Description
See comment #1593 (comment) for context.
The outline of the potential API is:
pip.register_platform(
name = "linux_x86_64",
cpu = "@platforms//cpu:x86_64",
os = "@platforms//os:linux",
)
By default rules_python
could register sensible values that the hermetic toolchain supports, but the user may elect to override the values by registering values in the root module. As such the proposal would be clear the values registered by rules_python
if the root module registers any platform values.
One more idea would be to require the requirements_windows
, etc based on the registered platforms.
This feature only starts making sense once #1593 is merged (refers to #1591) and this could help with finding a viable design for #260.
Metadata
Metadata
Assignees
Labels
No labels