git: 124aefcaa4bc - main - devel/py-rapidfuzz: Fix build with setuptools 58.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 13:50:11 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=124aefcaa4bc61466cdf0e7d385de63537e3ed3d

commit 124aefcaa4bc61466cdf0e7d385de63537e3ed3d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 13:32:23 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:38:11 +0000

    devel/py-rapidfuzz: Fix build with setuptools 58.0.0+
    
    With hat:       python
---
 devel/py-rapidfuzz/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/devel/py-rapidfuzz/Makefile b/devel/py-rapidfuzz/Makefile
index 0f5c9ad0801f..fcf4a10b6f5a 100644
--- a/devel/py-rapidfuzz/Makefile
+++ b/devel/py-rapidfuzz/Makefile
@@ -25,5 +25,7 @@ post-install:
 		${STRIP_CMD} \
 			${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/*.so \
 			${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/distance/*.so
+	${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
+	${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
 
 .include <bsd.port.mk>