Re: git: 18982c467f6c - main - python.mk: PEP-517 data_files support

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Sun, 26 Feb 2023 15:27:00 UTC
Hello Charlie,

From: Charlie Li <vishwin@FreeBSD.org>
Subject: git: 18982c467f6c - main - python.mk: PEP-517 data_files support
Date: Sun, 26 Feb 2023 03:15:21 GMT

> The branch main has been updated by vishwin:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=18982c467f6ce3109f1e71198274eeac45f35297
> 
> commit 18982c467f6ce3109f1e71198274eeac45f35297
> Author:     Charlie Li <vishwin@FreeBSD.org>
> AuthorDate: 2023-01-14 01:30:42 +0000
> Commit:     Charlie Li <vishwin@FreeBSD.org>
> CommitDate: 2023-02-26 03:14:17 +0000
> 
>     python.mk: PEP-517 data_files support
>     
>     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/. It is limited to certain directories
>     in hier(7) listed under /usr/local to prevent wheels from installing
>     files to arbitrary locations.

Please also add ${PREFIX}/etc to the list of the directories. With
this commit build of updated version of mail/py-spf-engine fails with
check-plist error as following.

====> Running Q/A tests (stage-qa)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: etc/python-policyd-spf/policyd-spf.conf.commented
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%PYTHON_LIBDIR%%/site-..etc/python-policyd-spf/policyd-spf.conf.commented
===> Error: Plist issues found.
*** Error code 1

Stop.
make: stopped in /usr/ports/mail/py-spf-engine

Best Regards

---
Yasuhiro Kimura