d858b7cc2a
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.
43 lines
861 B
Makefile
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>
|