summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2026-01-26 13:23:18 +0200
committerKhem Raj <raj.khem@gmail.com>2026-01-30 23:59:04 -0800
commit48dd13d3748a8a931a863d63e1b93f49e6d0ceed (patch)
tree6f860e6398fbad6a1e5173bec046dc202dfdd7c0 /meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
parent9769266642e3f03348955db24516ed6b216b0a1e (diff)
downloadmeta-openembedded-48dd13d3748a8a931a863d63e1b93f49e6d0ceed.tar.gz
python3-pandas: Upgrade 2.2.3 -> 3.0.0
Upgrade to release 3.0.0: - Dedicated string data type by default - Consistent copy/view behaviour with Copy-on-Write (CoW) (a.k.a. getting rid of the SettingWithCopyWarning) - New default resolution for datetime-like data - Initial support for the new pd.col syntax License-Update: Update license year to 2026 Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch30
1 files changed, 19 insertions, 11 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch b/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
index e83576eb62..ed5eb767e9 100644
--- a/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
+++ b/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
@@ -1,4 +1,4 @@
1From 16dd09e6c79768a24f5a50ec5985e0b6fdf17f35 Mon Sep 17 00:00:00 2001 1From 65db03f03dbb61172c6eea8b34d11ea9eb0c6d77 Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com> 2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Mon, 10 Mar 2025 13:52:11 +0100 3Date: Mon, 10 Mar 2025 13:52:11 +0100
4Subject: [PATCH] BLD: add option to specify numpy header location 4Subject: [PATCH] BLD: add option to specify numpy header location
@@ -19,24 +19,29 @@ include folder location, fall back to the value of this meson option.
19Upstream-Status: Submitted [https://github.com/pandas-dev/pandas/pull/61095] 19Upstream-Status: Submitted [https://github.com/pandas-dev/pandas/pull/61095]
20 20
21Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> 21Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
22Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
22--- 23---
23 meson.options | 1 + 24 meson.options | 1 +
24 pandas/meson.build | 13 ++++++++++--- 25 pandas/meson.build | 12 +++++++++---
25 2 files changed, 11 insertions(+), 3 deletions(-) 26 2 files changed, 10 insertions(+), 3 deletions(-)
26 create mode 100644 meson.options 27 create mode 100644 meson.options
27 28
29diff --git a/meson.options b/meson.options
30new file mode 100644
31index 0000000..3d3a18d
28--- /dev/null 32--- /dev/null
29+++ b/meson.options 33+++ b/meson.options
30@@ -0,0 +1 @@ 34@@ -0,0 +1 @@
31+option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers') 35+option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers')
36diff --git a/pandas/meson.build b/pandas/meson.build
37index 840ac25..2c3423e 100644
32--- a/pandas/meson.build 38--- a/pandas/meson.build
33+++ b/pandas/meson.build 39+++ b/pandas/meson.build
34@@ -3,17 +3,24 @@ incdir_numpy = run_command(py, 40@@ -4,17 +4,23 @@ incdir_numpy = run_command(
35 '-c', 41 '-c',
36 ''' 42 '''
37 import os 43 import os
38-import numpy as np 44-import numpy as np
39+
40+try: 45+try:
41+ import numpy as np 46+ import numpy as np
42+ base_incdir = np.get_include() 47+ base_incdir = np.get_include()
@@ -53,9 +58,12 @@ Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
53- incdir = np.get_include() 58- incdir = np.get_include()
54+ incdir = base_incdir 59+ incdir = base_incdir
55 print(incdir) 60 print(incdir)
56 ''' 61 ''',
57 ], 62 ],
58+ env: {'NUMPY_INC_DIR': get_option('numpy_inc_dir')}, 63+ env: {'NUMPY_INC_DIR': get_option('numpy_inc_dir')},
59 check: true 64 check: true,
60 ).stdout().strip() 65 ).stdout().strip()
61 66
67--
682.47.3
69