python-wheel-build / fromager

Build your own wheels
https://fromager.readthedocs.io/en/latest/
Apache License 2.0
7 stars 11 forks source link

Implement variant-specific patches #488

Closed tiran closed 3 weeks ago

tiran commented 3 weeks ago

Fromager now supports variant-specific patches in additional to versioned and unversioned patches. Variant-specific patches are in subfolders, e.g. atches/test_pkg-1.0.2/cpu/005-cpuver.patch.

Patch files are sorted alphanumerically by their base name, not their full path. This allows users to sort versioned/unversioned and plain/variant patches as they like.

Internal changes: sources.patch_source() now uses PackageBuildInfo to get patches. patches_for_requirement() has been removed.

Fixes: #486