mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 18:36:28 -04:00
Fix build when setuptools is removed from RUN_DEPENDS in Mk/Uses/python.mk. PR: 270510 Approved by: portmgr (blanket)
29 lines
847 B
Makefile
29 lines
847 B
Makefile
PORTNAME= POT
|
|
DISTVERSION= 0.9.3
|
|
CATEGORIES= math python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Python Optimal Transport Library
|
|
WWW= https://pythonot.github.io/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
|
${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}scipy>=1.6:science/py-scipy@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= pep517 cython autoplist pytest # expects newer pytest than 7.4.4: AttributeError: module pytest has no attribute skip_backend
|
|
|
|
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
TEST_WRKSRC= ${WRKSRC}/test
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ot/lp/emd_wrap${PYTHON_EXT_SUFFIX}.so
|
|
|
|
.include <bsd.port.mk>
|