git: 044229965d3a - main - databases/py-peewee: force cythonization

Dmitry Marakasov amdmi3 at FreeBSD.org
Tue Aug 24 18:04:57 UTC 2021


The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=044229965d3a4bc4ab717eaa3458e12ee5a3776c

commit 044229965d3a4bc4ab717eaa3458e12ee5a3776c
Author:     Dmitry Marakasov <amdmi3 at FreeBSD.org>
AuthorDate: 2021-08-19 15:25:18 +0000
Commit:     Dmitry Marakasov <amdmi3 at FreeBSD.org>
CommitDate: 2021-08-24 17:59:13 +0000

    databases/py-peewee: force cythonization
    
    Remove pregenerated cython .c files to force regeneration. This
    fixes build with python 3.9+, with which pregenerated files are not
    compatible.
    
    Approved by:    portmgr blanket
---
 databases/py-peewee/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/databases/py-peewee/Makefile b/databases/py-peewee/Makefile
index 96cee7bcc4ef..77edb22e30cf 100644
--- a/databases/py-peewee/Makefile
+++ b/databases/py-peewee/Makefile
@@ -25,6 +25,9 @@ PYDISTUTILS_BUILD_TARGET=	build build_ext
 PYDISTUTILS_BUILDARGS+=	--include-dirs=${LOCALBASE}/include \
 			--library-dirs=${LOCALBASE}/lib
 
+post-extract:
+	@${RM} ${WRKSRC}/playhouse/*.c
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/playhouse/*.so
 


More information about the dev-commits-ports-main mailing list