openbsd-ports/math/py-bottleneck/Makefile
sthen d858b7cc2a Ports built with setuptools on python 3.10 don't need a RUN_DEPENDS on
setuptools (it's used as a package locator but importlib.metadata in
newer Python core or the external importlib_metadata are preferred).
So drop the RDEP in that case (it's still kept for py27) and bump
revisions.
2022-11-26 23:28:11 +00:00

43 lines
861 B
Makefile

COMMENT = fast NumPy array functions written in C
MODPY_EGG_VERSION = 1.3.5
DISTNAME = Bottleneck-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME:L}
CATEGORIES = math
REVISION = 1
MAINTAINER = Martin Reindl <martin@catai.org>
# BSD
PERMIT_PACKAGE = Yes
WANTLIB += ${MODPY_WANTLIB} pthread
# ICE with base-gcc
COMPILER = base-clang ports-gcc
MODULES = lang/python
RUN_DEPENDS = math/py-numpy${MODPY_FLAVOR}
BUILD_DEPENDS = ${RUN_DEPENDS}
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR = python3
MODPY_PYTEST = Yes
TEST_DEPENDS = devel/py-pluggy${MODPY_FLAVOR} \
devel/py-nose${MODPY_FLAVOR} \
devel/py-test${MODPY_FLAVOR}
pre-test:
@${MODPY_CMD} build_ext --inplace
# also needs data dir from github for one test
do-test:
cd ${WRKSRC} && ${MODPY_BIN} -c "import bottleneck; bottleneck.test()"
.include <bsd.port.mk>