10000 Support registering target platforms with the `pip` `bzlmod` extension · Issue #1606 · bazel-contrib/rules_python · GitHub
[go: up one dir, main page]

Skip to content
Support registering target platforms with the pip bzlmod extension #1606
Closed as duplicate of#2548
@aignas

Description

@aignas

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0