mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 08:10:07 +02:00
numpy: update to version 2.2.1. (#11534)
Known incompatibilities on-tree were already solved, and I was able to build scipy 1.15.1 against this new version (updated scipy recipe still WIP). If anything breaks, is surely on outdated software, and we should fix that instead of keeping numpy on an older version.
This commit is contained in:
29
dev-python/numpy/patches/numpy-2.2.1.patchset
Normal file
29
dev-python/numpy/patches/numpy-2.2.1.patchset
Normal file
@@ -0,0 +1,29 @@
|
||||
From a3bc3cfbeea148e308b1202d629d94872737365c Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Tue, 24 Dec 2024 15:21:22 -0300
|
||||
Subject: Fix build on Haiku.
|
||||
|
||||
|
||||
diff --git a/numpy/_core/src/umath/string_buffer.h b/numpy/_core/src/umath/string_buffer.h
|
||||
index ae89ede..d756a0f 100644
|
||||
--- a/numpy/_core/src/umath/string_buffer.h
|
||||
+++ b/numpy/_core/src/umath/string_buffer.h
|
||||
@@ -14,6 +14,15 @@
|
||||
#include "string_fastsearch.h"
|
||||
#include "gil_utils.h"
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+ #undef isalnum
|
||||
+ #undef isalpha
|
||||
+ #undef isdigit
|
||||
+ #undef islower
|
||||
+ #undef isspace
|
||||
+ #undef isupper
|
||||
+#endif
|
||||
+
|
||||
#define CHECK_OVERFLOW(index) if (buf + (index) >= after) return 0
|
||||
#define MSB(val) ((val) >> 7 & 1)
|
||||
|
||||
--
|
||||
2.45.2
|
||||
|
||||
Reference in New Issue
Block a user