Edit

IABSD.fr/ports/math/py-numexpr/Makefile

Branch :

  • Show log

    Commit

  • Author : shadchin
    Date : 2017-04-23 17:45:20
    Hash : d8498326
    Message : Import py-numexpr 2.6.2, ok daniel@ Numexpr is a fast numerical expression evaluator for NumPy. With it, expressions that operate on arrays (like "3*a+4*b") are accelerated and use less memory than doing the same calculation in Python. In addition, its multi-threaded capabilities can make use of all your cores, which may accelerate computations, most specially if they are not memory-bounded (e.g. those using transcendental functions).

  • math/py-numexpr/Makefile
  • # $OpenBSD: Makefile,v 1.1.1.1 2017/04/23 17:45:20 shadchin Exp $
    
    COMMENT =		fast numerical expression evaluator for NumPy
    
    MODPY_EGG_VERSION =	2.6.2
    DISTNAME =		numexpr-${MODPY_EGG_VERSION}
    PKGNAME =		py-${DISTNAME}
    CATEGORIES =		math
    
    MAINTAINER =		Alexandr Shadchin <shadchin@openbsd.org>
    
    # MIT
    PERMIT_PACKAGE_CDROM =	Yes
    
    WANTLIB +=		m pthread ${MODPY_WANTLIB} ${LIBCXX}
    
    MODULES =		lang/python
    
    MODPY_PI =		Yes
    MODPY_SETUPTOOLS =	Yes
    
    RUN_DEPENDS =		math/py-numpy${MODPY_FLAVOR}
    BUILD_DEPENDS =		${RUN_DEPENDS}
    TEST_DEPENDS =		${RUN_DEPENDS}
    
    FLAVORS =		python3
    FLAVOR ?=
    
    do-test: fake
    	PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} -c \
    	    "import numexpr; numexpr.test()"
    
    .include <bsd.port.mk>