python-wheel-build / fromager

Build your own wheels
https://pypi.org/project/fromager/
Apache License 2.0
3 stars 9 forks source link

fix filtering based on markers during bootstrapping #183

Closed dhellmann closed 1 month ago

dhellmann commented 1 month ago

If we're given a requirements file as input, we might be iterating over a list of requirements with marker expressions that limit their use to specific platforms or python versions. Evaluate the markers to filter out anything we shouldn't build. Only apply the filter to toplevel requirements (items without a why list leading up to them) because other dependencies are already filtered based on their markers in the context of their parent, so they include values like the parent's extras settings.

Fixes #182