Page MenuHomeFreeBSD

python.mk: PEP-517 data_files support
ClosedPublic

Authored by vishwin on Jan 14 2023, 1:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 2:33 PM
Unknown Object (File)
Thu, May 2, 2:32 PM
Unknown Object (File)
Thu, May 2, 2:32 PM
Unknown Object (File)
Thu, May 2, 1:27 PM
Unknown Object (File)
Thu, May 2, 1:26 PM
Unknown Object (File)
Thu, May 2, 1:26 PM
Unknown Object (File)
Thu, May 2, 11:23 AM
Unknown Object (File)
Feb 4 2024, 4:33 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
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.