aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2024-04-12 09:45:12 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2024-04-12 09:45:13 +0000
commit8f5be967496a681a70b79488aa17d5394af2c77e (patch)
tree277e92edf71aa22a2bae9722f1187b935e2a28a3
parent8d1eb79bb5c3a3ead0ee23a54e53562961671c01 (diff)
downloadports-8f5be967496a681a70b79488aa17d5394af2c77e.tar.gz
ports-8f5be967496a681a70b79488aa17d5394af2c77e.zip
devel/py-numba: update to 0.59.1
Add missing dependency on numpy Drop stale bits from Makefile Take maintainership PR: 277877 Approved by: consecutive maintainer timeouts
-rw-r--r--devel/py-numba/Makefile15
-rw-r--r--devel/py-numba/distinfo6
2 files changed, 10 insertions, 11 deletions
diff --git a/devel/py-numba/Makefile b/devel/py-numba/Makefile
index 94ab1cf9877e..7cb284bf8cb6 100644
--- a/devel/py-numba/Makefile
+++ b/devel/py-numba/Makefile
@@ -1,10 +1,10 @@
PORTNAME= numba
-DISTVERSION= 0.57.0
+DISTVERSION= 0.59.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-MAINTAINER= dave@dal.ca
+MAINTAINER= makc@FreeBSD.org
COMMENT= Optimizing compiler for Python using LLVM
WWW= https://numba.pydata.org/
@@ -15,22 +15,21 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN= requires OpenMP support that is missing on this architecture
.endif
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>1.11,1:math/py-numpy@${PY_FLAVOR} \
+# numpy version is checked at runtime
+# https://github.com/numba/numba/blob/main/numba/__init__.py#L13
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.21,1<=1.26,1:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pip>=0:devel/py-pip@${PY_FLAVOR}
LIB_DEPENDS= libtbb.so:devel/onetbb
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}llvmlite>=0.31.0:devel/py-llvmlite@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}llvmlite>=0.31.0:devel/py-llvmlite@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}numpy>=1.21,1<=1.26,1:math/py-numpy@${PY_FLAVOR} \
USES= compiler:c++11-lang python fortran localbase
USE_PYTHON= distutils concurrent autoplist unittest
-MAKE_ENV= NUMBA_DISABLE_TBB=1 # workaround for: not compatible with onetbb-2021.6.0, see https://github.com/numba/numba/issues/8487
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
TEST_WRKSRC= ${WRKSRC}/numba/tests
-post-patch:
- @${SED} -i.bak 's#1\.25#1\.27#g' ${WRKSRC}/setup.py
-
post-install:
@${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name "*.so" | ${XARGS} ${STRIP_CMD}
diff --git a/devel/py-numba/distinfo b/devel/py-numba/distinfo
index 809a138bdf7f..b98a2b53bceb 100644
--- a/devel/py-numba/distinfo
+++ b/devel/py-numba/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1705843263
-SHA256 (numba-0.57.0.tar.gz) = 2af6d81067a5bdc13960c6d2519dbabbf4d5d597cf75d640c5aeaefd48c6420a
-SIZE (numba-0.57.0.tar.gz) = 2549269
+TIMESTAMP = 1712834107
+SHA256 (numba-0.59.1.tar.gz) = 76f69132b96028d2774ed20415e8c528a34e3299a40581bae178f0994a2f370b
+SIZE (numba-0.59.1.tar.gz) = 2652730