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
Before this change, the dependency closures would be influenced by the
host-python interpreter, this removes the influence by detecting the
platforms against which the `Requires-Dist` wheel metadata is evaluated.
This functionality can be enabled via `experimental_target_platforms`
attribute to the `pip.parse` extension and is showcased in the `bzlmod`
example. The same attribute is also supported on the legacy `pip_parse`
repository rule.
The detection works in the following way:
- Check if the python wheel is platform specific or cross-platform
(i.e., ends with `any.whl`), if it is then platform-specific
dependencies are generated, which will go through a `select`
statement.
- If it is platform specific, then parse the platform_tag and evaluate
the `Requires-Dist` markers assuming the target platform rather than
the host platform.
NOTE: The `whl` `METADATA` is now being parsed using the `packaging`
Python package instead of `pkg_resources` from `setuptools`.
Fixes#1591
---------
Co-authored-by: Richard Levasseur <[email protected]>
0 commit comments