Skip to content

Commit 2e26dd3

Browse files
committed
numba wip
1 parent 429ce1b commit 2e26dd3

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--- numba-0.63.1/numba/__init__.py.orig 2025-12-23 18:42:41.966985400 +0100
2+
+++ numba-0.63.1/numba/__init__.py 2025-12-23 18:42:51.289454200 +0100
3+
@@ -39,8 +39,8 @@
4+
f"{numpy_version[0]}.{numpy_version[1]}.")
5+
raise ImportError(msg)
6+
7+
- if numpy_version > (2, 3):
8+
- msg = (f"Numba needs NumPy 2.3 or less. Got NumPy "
9+
+ if numpy_version > (2, 4):
10+
+ msg = (f"Numba needs NumPy 2.4 or less. Got NumPy "
11+
f"{numpy_version[0]}.{numpy_version[1]}.")
12+
raise ImportError(msg)
13+
14+
--- numba-0.63.1/setup.py.orig 2025-12-23 18:42:54.368599100 +0100
15+
+++ numba-0.63.1/setup.py 2025-12-23 18:43:03.060381200 +0100
16+
@@ -23,7 +23,7 @@
17+
max_python_version = "3.15" # exclusive
18+
min_numpy_build_version = "2.0.0rc1"
19+
min_numpy_run_version = "1.22"
20+
-max_numpy_run_version = "2.4"
21+
+max_numpy_run_version = "2.5"
22+
min_llvmlite_version = "0.46.0dev0"
23+
max_llvmlite_version = "0.47"
24+

mingw-w64-python-numba/PKGBUILD

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _realname=numba
44
pkgbase=mingw-w64-python-${_realname}
55
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
66
pkgver=0.63.1
7-
pkgrel=1
7+
pkgrel=2
88
pkgdesc='NumPy aware dynamic Python compiler using LLVM (mingw-w64)'
99
arch=('any')
1010
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
@@ -28,11 +28,18 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
2828
"${MINGW_PACKAGE_PREFIX}-cc")
2929
optdepends=("${MINGW_PACKAGE_PREFIX}-python-scipy")
3030
options=('!emptydirs' '!strip')
31-
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
32-
sha256sums=('b320aa675d0e3b17b40364935ea52a7b1c670c9037c39cf92c49502a75902f4b')
31+
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz"
32+
"0001-allow-newer-numpy.patch"
33+
"https://patch-diff.githubusercontent.com/raw/numba/numba/pull/10329.patch")
34+
sha256sums=('b320aa675d0e3b17b40364935ea52a7b1c670c9037c39cf92c49502a75902f4b'
35+
'4b4e304c4332c2f8195998e06141946fd77b451cc3e35ce5190afee47c4807ca'
36+
'680d6e6eb7b6c8633511e891025075da53abb71bbe4f676a98295cdd9e72ebb4')
3337

3438
prepare() {
3539
cd "${_realname}-${pkgver}"
40+
41+
patch -p1 < ../0001-allow-newer-numpy.patch
42+
patch -p1 < ../10329.patch
3643
}
3744

3845
build() {

0 commit comments

Comments
 (0)