Commit 5f94cd6f authored by sunpoet's avatar sunpoet
Browse files

Fix build with Python 3.8+

PR:		254503
Submitted by:	kai
parent 7bca85c0
......@@ -21,6 +21,12 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} >= 3800
LDFLAGS+= -lpython${PYTHON_VER}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/python/ots/__init__.py
@${RM} -r ${WRKSRC}/src/c/
......@@ -31,4 +37,4 @@ post-install:
do-test:
cd ${WRKSRC}/ && ${PYTHON_CMD} -m pytest -v
.include <bsd.port.mk>
.include <bsd.port.post.mk>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment