From nobody Sun Feb 26 03:15:21 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PPTK54mn0z3vCqH; Sun, 26 Feb 2023 03:15:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PPTK54HVgz3jNd; Sun, 26 Feb 2023 03:15:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677381321; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h7zVlnA0Hi5sAzioRjVVkMTu6QsHAbS852JQPpByybo=; b=VvktUx6SZ6ceeKmaYvEPhpkLQnaMoVBYrj1dAMKwOLtPH9KT5EK3bVuRMUk2MtCZCKRyOo NRr+hrbXYUbKKbpYlYU1aRFPCLUinUHcR7Avez4rLVAKLI/MPTU5U9tp7ctpH2ig2Bd2NH 4bH6t6d8FAasf6uBXrX6rd0hG9+VlGpAY25WsLk/hiFTo29NtMy7qeqap2ZrOYMGBLQD31 AbijuJkT96cvvJcY6B9pGf9XOjtd1eQJMKCVC6Nr44aTGyge8WdEdk0g3v46YNl/meYgj0 Dk4xmT7mlJNQPaVT2Len1x5KWnjAfLdL2JfhVwtH6116/08mr2o+dTafBfOqcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677381321; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h7zVlnA0Hi5sAzioRjVVkMTu6QsHAbS852JQPpByybo=; b=PuFHrz4SrZqFjn4WAtACbOMxankStYWlpm18G6G/2Nn+c1LTXG9QeSWmij+UM2WrNBbh5p ZvGhX0NiFdFrTaWyMSTvIDHiAiAWrTZIrjeC8dJ9FQ3VjZzw0On9pGtZByaFtfBLK3tq6m jxM+K2mSCz6DgUaDkko/VDPRiI8bxwShZuzB873t42Wnx8axyrFisH6+7gGschCFKubDDk IKTzvKL219uvF2MTLmz4Udfmn1IRw7ax6ETudBVLzieaRFkx4S/NIvCOGN+RpbvEYHQiz3 Ab2ZVOY9HfL/qQ7g5x3Bo44zZGPXMWZpWyUTyfpFVBABTyavx+QCI0UlqFWnnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677381321; a=rsa-sha256; cv=none; b=FgvUb7VZns1sQZkqivhg7TvRVJBy++OVsAnQQ9HCPf+i8InFAIaue9zrrNY4CKbfQR8GcS wR1hk44ZqUUuBfuy5AywKvRIC1ExL4RkrZnSOP9BMgt+F/3s2qx+WLwoB9L7n+q5wkb/nW ajtIjPD2lCFM+8ULJSZvUf649MMqGHZwzKNBfH1RktJEqM0FafODIIm/mJZVPG4X5rEn5+ HlD7F8n/D28HMmw6wvVNNgIBqmPv0toRESsZOoPZD7P+JANVahcqhYngB8NkBQtbK6xwYB IvIDI4X1m1inl02WTQ0nsfpFV1uxUOTsZ8ivSR4X5PLbhCcFLbjda8RQpqg1Fw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PPTK53MQdzV5W; Sun, 26 Feb 2023 03:15:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31Q3FLtN093198; Sun, 26 Feb 2023 03:15:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31Q3FLS6093197; Sun, 26 Feb 2023 03:15:21 GMT (envelope-from git) Date: Sun, 26 Feb 2023 03:15:21 GMT Message-Id: <202302260315.31Q3FLS6093197@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Charlie Li Subject: git: 18982c467f6c - main - python.mk: PEP-517 data_files support List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vishwin X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 18982c467f6ce3109f1e71198274eeac45f35297 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by vishwin: URL: https://cgit.FreeBSD.org/ports/commit/?id=18982c467f6ce3109f1e71198274eeac45f35297 commit 18982c467f6ce3109f1e71198274eeac45f35297 Author: Charlie Li AuthorDate: 2023-01-14 01:30:42 +0000 Commit: Charlie Li 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. Tested by: yasu (first pass) Differential Revision: https://reviews.freebsd.org/D38050 --- Mk/Uses/python.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index ec86003565ee..4e264234772e 100644 --- a/Mk/Uses/python.mk +++ b/Mk/Uses/python.mk @@ -872,6 +872,12 @@ do-install: @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PEP517_INSTALL_CMD} @${SED} -e 's|^|${PYTHONPREFIX_SITELIBDIR}/|' \ -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../bin/|bin/|' \ + -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../include/|include/|' \ + -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../lib/|lib/|' \ + -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../libdata/|libdata/|' \ + -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../libexec/|libexec/|' \ + -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../sbin/|sbin/|' \ + -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../share/|share/|' \ -e 's|\,.*$$||' \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME:C/[-_]+/_/g}-${PORTVERSION}.dist-info/RECORD >> ${_PYTHONPKGLIST} . endif