Page MenuHomeFreeBSD

python.mk: PEP-517 data_files support
ClosedPublic

Authored by vishwin on Jan 14 2023, 1:40 AM.
Tags
None
Referenced Files
F105282667: D38050.diff
Sat, Dec 14, 11:02 AM
Unknown Object (File)
Sun, Nov 17, 1:55 AM
Unknown Object (File)
Sat, Nov 16, 3:42 AM
Unknown Object (File)
Oct 22 2024, 3:40 PM
Unknown Object (File)
Oct 21 2024, 9:53 AM
Unknown Object (File)
Oct 4 2024, 3:51 PM
Unknown Object (File)
Oct 4 2024, 3:11 AM
Unknown Object (File)
Sep 22 2024, 2:31 AM

Details

Summary

data_files was not initially supported in the framework under the guise that PyPA through setuptools deprecated the practice. However, other build backends like flit still support (and advertise as a "newer" feature) data_files, and certain packages continue to install operating system-specific files like man pages using Python's packaging system.

This expands RECORD parsing to account for any data_files beyond entry_points installed to bin/.

Note: this initial pass includes everything RECORD places in ${PREFIX}, but this should most likely be pared down to directories allowable in hier(7). Anything installed outside hier(7) (other build backends may support installing to arbitrary locations) should be flagged as a check-plist error and port maintainers are to deal with them accordingly.

Test Plan

mail/py-spf-engine has been the guinea pig here, using flit's functionality.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 49104
Build 45993: arc lint + arc unit

Event Timeline

regen? (due to including previous commit)

With this change check-plist error of mail/py-spf-engine is fixed. Thanks!

only allow select directories under hier(7)

This revision was not accepted when it landed; it landed in state Needs Review.Feb 26 2023, 3:15 AM
This revision was automatically updated to reflect the committed changes.