textproc/py-sentencepiece: Fix tests

2024Q2
Yuri Victorovich 2024-02-21 01:14:50 -08:00
parent d9376718d3
commit a26c07bdd4
1 changed files with 3 additions and 2 deletions

View File

@ -15,13 +15,14 @@ BUILD_DEPENDS= protobuf>0:devel/protobuf
LIB_DEPENDS= libsentencepiece.so:textproc/sentencepiece
USES= compiler:c++17-lang pkgconfig python
USE_PYTHON= distutils autoplist pytest # many tests fail, see https://github.com/google/sentencepiece/issues/977
USE_PYTHON= distutils autoplist
USE_GITHUB= yes
GH_ACCOUNT= google
WRKSRC_SUBDIR= python
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYSETUP} test
.include <bsd.port.mk>