You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
In slack, a potential use case for this came up: when you're using an alternative interpreter. As an example, there's 4 different builds of the x86_64 linux interpreter that vary by micro architecture, plus several more that very by some optimization settings. If a pypi package had distributions for such runtimes, then we'd need some way to map from those constraint settings to the wheel file.
In practice, I think the ones we've seen in the wild would be musl builds? A company using one of the specialized interpreters (or a custom interpreter) that stands up its own pypi index with custom-built wheels isn't out of the realm of plausibility, either.
(As an aside, this made me think that a solution to the "how do we use the correct interpreter in pip.parse?" / "how do we tell pip.parse what platforms it should care about?" problems is to not try and do that in pip.parse, and instead have e.g. compile_pip_requirements (which can do toolchain resolution) generate everything so that all pip.parse does is basically just calling http_archive() on a bunch of URLs).
See comment #1593 (comment) for context.
The outline of the potential API is:
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 byrules_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.
The text was updated successfully, but these errors were encountered: