Skip to contentSkip to conversation

python3-pandas: Upgrade to 2.2.3

PATCH Superseded Khem Raj 2 participants 7 messages May 18, 2025 – May 19, 2025 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/4 python3-pandas: Upgrade to 2.2.3

Fixes build with cython >=3.1
Drop patch to pin numpy to 1.x

---
 ...ion-to-specify-numpy-header-location.patch |  5 ----
 ...Downgrade-numpy-version-needs-to-1.x.patch | 27 -------------------
 ...t.toml-don-t-pin-dependency-versions.patch | 11 +++-----
 ...andas_2.2.2.bb => python3-pandas_2.2.3.bb} |  3 +--
 4 files changed, 4 insertions(+), 42 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch
 rename meta-python/recipes-devtools/python/{python3-pandas_2.2.2.bb => python3-pandas_2.2.3.bb} (87%)
meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch +0 -5
index 87023a24ec..e83576eb62 100644
@@ -25,15 +25,10 @@ Signed-off-by: Gyorgy Sarvari <[email protected]>
  2 files changed, 11 insertions(+), 3 deletions(-)
  create mode 100644 meson.options
 
-diff --git a/meson.options b/meson.options
-new file mode 100644
-index 0000000000..3d3a18d145
 --- /dev/null
 +++ b/meson.options
 @@ -0,0 +1 @@
 +option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers')
-diff --git a/pandas/meson.build b/pandas/meson.build
-index 435103a..a08c77a 100644
 --- a/pandas/meson.build
 +++ b/pandas/meson.build
 @@ -3,17 +3,24 @@ incdir_numpy = run_command(py,
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch deleted +0 -27
deleted file mode 100644
index b0ef8ce00c..0000000000
@@ -1,27 +0,0 @@
-From d81d95274d84ac51fc02e0fa91affc7f3cbefccb Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sat, 24 Aug 2024 10:21:43 -0700
-Subject: [PATCH] pyproject.toml: Downgrade numpy version needs to 1.x
-
-Drop it when numpy is upgraded to 2.x or newer in core
-
-Upstream-Status: Inappropriate [OE workaround]
-
-Signed-off-by: Khem Raj <[email protected]>
----
- pyproject.toml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 5158d60..d3daa78 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -8,7 +8,7 @@ requires = [
-     "Cython>=3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
-     # Force numpy higher than 2.0rc1, so that built wheels are compatible
-     # with both numpy 1 and 2
--    "numpy>=2.0.0rc1",
-+    "numpy>=1.24.0",
-     "versioneer[toml]"
- ]
- 
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch +3 -8
index f60f43a5b0..950f25303f 100644
@@ -14,8 +14,6 @@ Signed-off-by: Trevor Gamblin <[email protected]>
  pyproject.toml | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
 
-diff --git a/pyproject.toml b/pyproject.toml
-index db9f055799..5158d60f59 100644
 --- a/pyproject.toml
 +++ b/pyproject.toml
 @@ -2,10 +2,10 @@
@@ -27,11 +25,8 @@ index db9f055799..5158d60f59 100644
 +    "meson-python>=0.13.1",
 +    "meson>=1.2.1",
      "wheel",
--    "Cython==3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
+-    "Cython~=3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
 +    "Cython>=3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
-     # Force numpy higher than 2.0rc1, so that built wheels are compatible
+     # Force numpy higher than 2.0, so that built wheels are compatible
      # with both numpy 1 and 2
-     "numpy>=2.0.0rc1",
--- 
-2.39.2
-
+     "numpy>=2.0",
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +1 -2
similarity index 87%
rename from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb
rename to meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb
index b956f5ca2f..3e41e4aa6f 100644
@@ -8,12 +8,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a"
 
 SRC_URI += " \
             file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \
-            file://0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch \
             "
 
 SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch "
 
-SRC_URI[sha256sum] = "9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54"
+SRC_URI[sha256sum] = "4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667"
 
 inherit pkgconfig pypi python_mesonpy cython
 
author
#1 lore raw

PATCH 2/4 python3-kivy: Fix build with cython 3.1

Backport needed patch from upstream top of tree branch

---
 ...n-2-long-from-Cython-files-fixes-bui.patch | 63 +++++++++++++++++++
 .../python/python3-kivy_2.3.1.bb              |  1 +
 2 files changed, 64 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-kivy/0001-Remove-old-Python-2-long-from-Cython-files-fixes-bui.patch
meta-python/recipes-devtools/python/python3-kivy/0001-Remove-old-Python-2-long-from-Cython-files-fixes-bui.patch new file +63 -0
new file mode 100644
index 0000000000..c68e227482
@@ -0,0 +1,63 @@
+From 288e3d5ecff1bc5e7de29d9daddb83d697280004 Mon Sep 17 00:00:00 2001
+From: Mirko Galimberti <[email protected]>
+Date: Sun, 18 May 2025 09:38:14 +0200
+Subject: [PATCH] Remove old Python 2 long from Cython files, fixes build with
+ Cython `3.1.x` (#9056)
+
+Upstream-Status: Backport [https://github.com/kivy/kivy/commit/5a1b27d7d3bdee6cedb55440bfae9c4e66fb3c68]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ kivy/graphics/context_instructions.pyx | 2 +-
+ kivy/graphics/opengl.pyx               | 4 ++--
+ kivy/weakproxy.pyx                     | 3 ---
+ 3 files changed, 3 insertions(+), 6 deletions(-)
+
+diff --git a/kivy/graphics/context_instructions.pyx b/kivy/graphics/context_instructions.pyx
+index 0d4b8f548..1c23c0e1c 100644
+--- a/kivy/graphics/context_instructions.pyx
++++ b/kivy/graphics/context_instructions.pyx
+@@ -86,7 +86,7 @@ cdef tuple rgb_to_hsv(float r, float g, float b):
+ 
+ cdef tuple hsv_to_rgb(float h, float s, float v):
+     if s == 0.0: return v, v, v
+-    cdef long i = long(h * 6.0)
++    cdef long i = <long>(h * 6.0)
+     cdef float f = (h * <float>6.0) - i
+     cdef float p = v * (<float>1.0 - s)
+     cdef float q = v * (<float>1.0 - s * f)
+diff --git a/kivy/graphics/opengl.pyx b/kivy/graphics/opengl.pyx
+index bcca70842..f535c62a6 100644
+--- a/kivy/graphics/opengl.pyx
++++ b/kivy/graphics/opengl.pyx
+@@ -689,7 +689,7 @@ def glDrawElements(GLenum mode, GLsizei count, GLenum type, indices):
+     cdef void *ptr = NULL
+     if isinstance(indices, bytes):
+         ptr = <void *>(<char *>(<bytes>indices))
+-    elif isinstance(indices, (long, int)):
++    elif isinstance(indices, int):
+         ptr = <void *>(<unsigned int>indices)
+     else:
+         raise TypeError("Argument 'indices' has incorrect type (expected bytes or int).")
+@@ -1539,7 +1539,7 @@ def glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean norma
+     cdef void *ptr = NULL
+     if isinstance(data, bytes):
+         ptr = <void *>(<char *>(<bytes>data))
+-    elif isinstance(data, (long, int)):
++    elif isinstance(data, int):
+         ptr = <void *>(<unsigned int>data)
+     else:
+         raise TypeError("Argument 'data' has incorrect type (expected bytes or int).")
+diff --git a/kivy/weakproxy.pyx b/kivy/weakproxy.pyx
+index cac4fe66b..e8e1c0b77 100644
+--- a/kivy/weakproxy.pyx
++++ b/kivy/weakproxy.pyx
+@@ -253,9 +253,6 @@ cdef class WeakProxy(object):
+     def __int__(self):
+         return int(self.__ref__())
+ 
+-    def __long__(self):
+-        return long(self.__ref__())
+-
+     def __float__(self):
+         return float(self.__ref__())
+ 
meta-python/recipes-devtools/python/python3-kivy_2.3.1.bb +1 -0
index dd60ea43d5..83dc97955c 100644
@@ -12,6 +12,7 @@ inherit setuptools3 pkgconfig features_check cython
 # Also, if using SDL2 as backend, SDL2 needs to be configured with gles
 SRC_URI = "git://github.com/kivy/kivy.git;protocol=https;branch=stable \
            file://0001-add-support-for-glesv2.patch \
+           file://0001-Remove-old-Python-2-long-from-Cython-files-fixes-bui.patch \
            "
 
 SRCREV = "20d74dcd30f143abbd1aa94c76bafc5bd934d5bd"
author
#2 lore raw

PATCH 3/4 python3-dbus-fast: Fix build with cython 3.1

In reply to Khem Raj
---
 ...emove-upper-version-constraint-for-C.patch | 33 +++++++++++++++++++
 .../python/python3-dbus-fast_2.44.1.bb        |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-dbus-fast/0001-pyproject.toml-Remove-upper-version-constraint-for-C.patch
meta-python/recipes-devtools/python/python3-dbus-fast/0001-pyproject.toml-Remove-upper-version-constraint-for-C.patch new file +33 -0
new file mode 100644
index 0000000000..fb8f4df4a6
@@ -0,0 +1,33 @@
+From 85189fb66d3abb2645605f8a3c14d8152ef755fe Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 18 May 2025 10:24:19 -0700
+Subject: [PATCH] pyproject.toml: Remove upper version constraint for Cython
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+---
+ pyproject.toml | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index e22ea42..f670d3d 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -50,7 +50,7 @@ pytest-cov = ">=3,<7"
+ pytest-asyncio = ">=0.19,<0.27"
+ pycairo = "^1.21.0"
+ PyGObject = {version = ">=3.50,<3.51", python = "<4"}
+-Cython = ">=3,<3.1.0"
++Cython = ">=3"
+ setuptools = ">=65.4.1,<79.0.0"
+ pytest-timeout = "^2.1.0"
+ pytest-codspeed = "^3.1.1"
+@@ -104,7 +104,7 @@ module = "docs.*"
+ ignore_errors = true
+ 
+ [build-system]
+-requires = ['setuptools>=65.4.1', 'wheel', 'Cython>=3,<3.1.0', "poetry-core>=1.0.0"]
++requires = ['setuptools>=65.4.1', 'wheel', 'Cython>=3', "poetry-core>=1.0.0"]
+ build-backend = "poetry.core.masonry.api"
+ 
+ [tool.ruff]
meta-python/recipes-devtools/python/python3-dbus-fast_2.44.1.bb +1 -0
index 95f1eafebd..f827d21bb2 100644
@@ -3,6 +3,7 @@ HOMEPAGE = "https://github.com/bluetooth-devices/dbus-fast"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=729e372b5ea0168438e4fd4a00a04947"
 
+SRC_URI += "file://0001-pyproject.toml-Remove-upper-version-constraint-for-C.patch"
 SRC_URI[sha256sum] = "b027e96c39ed5622bb54d811dcdbbe9d9d6edec3454808a85a1ceb1867d9e25c"
 
 PYPI_PACKAGE = "dbus_fast"
author
#3 lore raw

PATCH 4/4 python3-propcache: Fix build with cython 3.1

In reply to Khem Raj
---
 .../0001-Fix-build-with-cython-3.1.x.patch    | 34 +++++++++++++++++++
 .../python/python3-propcache_0.3.1.bb         |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-propcache/0001-Fix-build-with-cython-3.1.x.patch
meta-python/recipes-devtools/python/python3-propcache/0001-Fix-build-with-cython-3.1.x.patch new file +34 -0
new file mode 100644
index 0000000000..3b86b23c00
@@ -0,0 +1,34 @@
+From 8d44d867f7cd86da4edf328e06b13778577ea4b7 Mon Sep 17 00:00:00 2001
+From: WXbet <[email protected]>
+Date: Thu, 15 May 2025 21:54:48 +0200
+Subject: [PATCH] Fix build with cython 3.1.x
+
+closes #113
+
+Upstream-Status: Submitted [https://github.com/aio-libs/propcache/pull/114]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ packaging/pep517_backend/_backend.py | 2 +-
+ requirements/cython.txt              | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py
+index 7588db3..f75b83a 100644
+--- a/packaging/pep517_backend/_backend.py
++++ b/packaging/pep517_backend/_backend.py
+@@ -379,7 +379,7 @@ def get_requires_for_build_wheel(
+     elif sysconfig.get_config_var('Py_GIL_DISABLED'):
+         c_ext_build_deps = ['Cython ~= 3.1.0a1']
+     else:
+-        c_ext_build_deps = ['Cython ~= 3.0.12']
++        c_ext_build_deps = ['Cython ~= 3.1']
+ 
+     return _setuptools_get_requires_for_build_wheel(
+         config_settings=config_settings,
+diff --git a/requirements/cython.txt b/requirements/cython.txt
+index 69a1d6f..5b356ed 100644
+--- a/requirements/cython.txt
++++ b/requirements/cython.txt
+@@ -1 +1 @@
+-cython==3.0.12
++cython~=3.1
meta-python/recipes-devtools/python/python3-propcache_0.3.1.bb +1 -0
index 24b72f09c3..afa6822563 100644
@@ -3,6 +3,7 @@ HOMEPAGE = "https://github.com/aio-libs/propcache"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
+SRC_URI += "file://0001-Fix-build-with-cython-3.1.x.patch"
 SRC_URI[sha256sum] = "40d980c33765359098837527e18eddefc9a24cea5b45e078a7f3bb5b032c6ecf"
 
 inherit pypi python_setuptools_build_meta ptest-python-pytest cython
#4 lore raw
In reply to Khem Raj

Hi,

with this update I'm seeing:
ERROR: QA Issue: File /usr/src/debug/python3-pandas/2.2.3/pandas/_libs/sparse.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/sparse.pyx.c in package python3-pandas-src contains reference to TMPDIR
[buildpaths]

Have you seen it as well or is it something specific to my setup?

Quoted 125 lines · Khem Raj via lists.openembedded.org

Fixes build with cython >=3.1
Drop patch to pin numpy to 1.x

---
 ...ion-to-specify-numpy-header-location.patch |  5 ----
 ...Downgrade-numpy-version-needs-to-1.x.patch | 27 -------------------
 ...t.toml-don-t-pin-dependency-versions.patch | 11 +++-----
 ...andas_2.2.2.bb => python3-pandas_2.2.3.bb} |  3 +--
 4 files changed, 4 insertions(+), 42 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch
 rename meta-python/recipes-devtools/python/{python3-pandas_2.2.2.bb => python3-pandas_2.2.3.bb} (87%)
meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch +0 -5
index 87023a24ec..e83576eb62 100644
@@ -25,15 +25,10 @@ Signed-off-by: Gyorgy Sarvari <[email protected]>
  2 files changed, 11 insertions(+), 3 deletions(-)
  create mode 100644 meson.options
 
-diff --git a/meson.options b/meson.options
-new file mode 100644
-index 0000000000..3d3a18d145
 --- /dev/null
 +++ b/meson.options
 @@ -0,0 +1 @@
 +option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers')
-diff --git a/pandas/meson.build b/pandas/meson.build
-index 435103a..a08c77a 100644
 --- a/pandas/meson.build
 +++ b/pandas/meson.build
 @@ -3,17 +3,24 @@ incdir_numpy = run_command(py,
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch deleted +0 -27
deleted file mode 100644
index b0ef8ce00c..0000000000
@@ -1,27 +0,0 @@
-From d81d95274d84ac51fc02e0fa91affc7f3cbefccb Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sat, 24 Aug 2024 10:21:43 -0700
-Subject: [PATCH] pyproject.toml: Downgrade numpy version needs to 1.x
-
-Drop it when numpy is upgraded to 2.x or newer in core
-
-Upstream-Status: Inappropriate [OE workaround]
-
-Signed-off-by: Khem Raj <[email protected]>
----
- pyproject.toml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 5158d60..d3daa78 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -8,7 +8,7 @@ requires = [
-     "Cython>=3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
-     # Force numpy higher than 2.0rc1, so that built wheels are compatible
-     # with both numpy 1 and 2
--    "numpy>=2.0.0rc1",
-+    "numpy>=1.24.0",
-     "versioneer[toml]"
- ]
-
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch +3 -8
index f60f43a5b0..950f25303f 100644
@@ -14,8 +14,6 @@ Signed-off-by: Trevor Gamblin <[email protected]>
  pyproject.toml | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
 
-diff --git a/pyproject.toml b/pyproject.toml
-index db9f055799..5158d60f59 100644
 --- a/pyproject.toml
 +++ b/pyproject.toml
 @@ -2,10 +2,10 @@
@@ -27,11 +25,8 @@ index db9f055799..5158d60f59 100644
 +    "meson-python>=0.13.1",
 +    "meson>=1.2.1",
      "wheel",
--    "Cython==3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
+-    "Cython~=3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
 +    "Cython>=3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
-     # Force numpy higher than 2.0rc1, so that built wheels are compatible
+     # Force numpy higher than 2.0, so that built wheels are compatible
      # with both numpy 1 and 2
-     "numpy>=2.0.0rc1",
---
-2.39.2
-
+     "numpy>=2.0",
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +1 -3
similarity index 87%
rename from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb
rename to meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb
index b956f5ca2f..3e41e4aa6f 100644
@@ -8,12 +8,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a"
 
 SRC_URI += " \
             file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \
-            file://0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch \
             "
 
 SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch "
 
-SRC_URI[sha256sum] = "9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54"
+SRC_URI[sha256sum] = "4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667"
 
 inherit pkgconfig pypi python_mesonpy cython
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#117456): https://lists.openembedded.org/g/openembedded-devel/message/117456
Mute This Topic: https://lists.openembedded.org/mt/113179377/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 10 lines · Martin Jansa via lists.openembedded.org

Hi,

with this update I'm seeing:
ERROR: QA Issue: File /usr/src/debug/python3-pandas/2.2.3/pandas/_libs/sparse.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/sparse.pyx.c in package python3-pandas-src contains reference to TMPDIR
[buildpaths]

Have you seen it as well or is it something specific to my setup?

http://errors.yoctoproject.org/Errors/Details/855166/

it's from:

# grep core2 /OE/build/oe-core/tmp/work/core2-64-oe-linux/python3-pandas/2.2.3/package/usr/src/debug/python3-pandas/2.2.3/pandas/_libs/sparse.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/sparse.pyx.c
#warning "/OE/build/oe-core/tmp/work/core2-64-oe-linux/python3-pandas/2.2.3/pandas-2.2.3/pandas/_libs/sparse.pyx:286:15:
: __weakref__ is unsupported in the Limited API when running on Python
<3.9."
#pragma message("/OE/build/oe-core/tmp/work/core2-64-oe-linux/python3-pandas/2.2.3/pandas-2.2.3/pandas/_libs/sparse.pyx:286:15:
: __weakref__ is unsupported in the Limited API when running on Python
<3.9.")
Quoted 131 lines
Quoted 109 lines · Khem Raj via lists.openembedded.org

Fixes build with cython >=3.1
Drop patch to pin numpy to 1.x

---
 ...ion-to-specify-numpy-header-location.patch |  5 ----
 ...Downgrade-numpy-version-needs-to-1.x.patch | 27 -------------------
 ...t.toml-don-t-pin-dependency-versions.patch | 11 +++-----
 ...andas_2.2.2.bb => python3-pandas_2.2.3.bb} |  3 +--
 4 files changed, 4 insertions(+), 42 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch
 rename meta-python/recipes-devtools/python/{python3-pandas_2.2.2.bb => python3-pandas_2.2.3.bb} (87%)
meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch +0 -5
index 87023a24ec..e83576eb62 100644
@@ -25,15 +25,10 @@ Signed-off-by: Gyorgy Sarvari <[email protected]>
  2 files changed, 11 insertions(+), 3 deletions(-)
  create mode 100644 meson.options
 
-diff --git a/meson.options b/meson.options
-new file mode 100644
-index 0000000000..3d3a18d145
 --- /dev/null
 +++ b/meson.options
 @@ -0,0 +1 @@
 +option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers')
-diff --git a/pandas/meson.build b/pandas/meson.build
-index 435103a..a08c77a 100644
 --- a/pandas/meson.build
 +++ b/pandas/meson.build
 @@ -3,17 +3,24 @@ incdir_numpy = run_command(py,
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch deleted +0 -27
deleted file mode 100644
index b0ef8ce00c..0000000000
@@ -1,27 +0,0 @@
-From d81d95274d84ac51fc02e0fa91affc7f3cbefccb Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sat, 24 Aug 2024 10:21:43 -0700
-Subject: [PATCH] pyproject.toml: Downgrade numpy version needs to 1.x
-
-Drop it when numpy is upgraded to 2.x or newer in core
-
-Upstream-Status: Inappropriate [OE workaround]
-
-Signed-off-by: Khem Raj <[email protected]>
----
- pyproject.toml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 5158d60..d3daa78 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -8,7 +8,7 @@ requires = [
-     "Cython>=3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
-     # Force numpy higher than 2.0rc1, so that built wheels are compatible
-     # with both numpy 1 and 2
--    "numpy>=2.0.0rc1",
-+    "numpy>=1.24.0",
-     "versioneer[toml]"
- ]
-
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch +3 -8
index f60f43a5b0..950f25303f 100644
@@ -14,8 +14,6 @@ Signed-off-by: Trevor Gamblin <[email protected]>
  pyproject.toml | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
 
-diff --git a/pyproject.toml b/pyproject.toml
-index db9f055799..5158d60f59 100644
 --- a/pyproject.toml
 +++ b/pyproject.toml
 @@ -2,10 +2,10 @@
@@ -27,11 +25,8 @@ index db9f055799..5158d60f59 100644
 +    "meson-python>=0.13.1",
 +    "meson>=1.2.1",
      "wheel",
--    "Cython==3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
+-    "Cython~=3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
 +    "Cython>=3.0.5",  # Note: sync with setup.py, environment.yml and asv.conf.json
-     # Force numpy higher than 2.0rc1, so that built wheels are compatible
+     # Force numpy higher than 2.0, so that built wheels are compatible
      # with both numpy 1 and 2
-     "numpy>=2.0.0rc1",
---
-2.39.2
-
+     "numpy>=2.0",
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +0 -0
similarity index 87%
rename from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb
rename to meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb
index b956f5ca2f..3e41e4aa6f 100644
@@ -8,12 +8,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a"
 
 SRC_URI += " \
             file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \

meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" · line 18

Quoted 10 lines
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +1 -2
-            file://0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch \
             "
 
 SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch "
 
-SRC_URI[sha256sum] = "9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54"
+SRC_URI[sha256sum] = "4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667"
 
 inherit pkgconfig pypi python_mesonpy cython
 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#117474): https://lists.openembedded.org/g/openembedded-devel/message/117474
Mute This Topic: https://lists.openembedded.org/mt/113179377/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#7 lore raw
Quoted 18 lines · Martin Jansa
Quoted 6 lines · Martin Jansa via lists.openembedded.org

Hi,

with this update I'm seeing:
ERROR: QA Issue: File

/usr/src/debug/python3-pandas/2.2.3/pandas/_libs/sparse.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/sparse.pyx.c

Quoted 4 lines

in package python3-pandas-src contains reference to TMPDIR [buildpaths]

Have you seen it as well or is it something specific to my setup?

http://errors.yoctoproject.org/Errors/Details/855166/

it's from:

Quoted 11 lines
# grep core2
/OE/build/oe-core/tmp/work/core2-64-oe-linux/python3-pandas/2.2.3/package/usr/src/debug/python3-pandas/2.2.3/pandas/_libs/sparse.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/sparse.pyx.c
#warning
"/OE/build/oe-core/tmp/work/core2-64-oe-linux/python3-pandas/2.2.3/pandas-2.2.3/pandas/_libs/sparse.pyx:286:15:
: __weakref__ is unsupported in the Limited API when running on Python
<3.9."
#pragma
message("/OE/build/oe-core/tmp/work/core2-64-oe-linux/python3-pandas/2.2.3/pandas-2.2.3/pandas/_libs/sparse.pyx:286:15:
: __weakref__ is unsupported in the Limited API when running on Python
<3.9.")

I did not perhaps see it yet but it looks to be that we need to edit out WORKDIR is it processed by cython

Quoted 168 lines
Quoted 9 lines
Quoted 4 lines · Khem Raj via lists.openembedded.org

Fixes build with cython >=3.1
Drop patch to pin numpy to 1.x

Quoted 8 lines
Quoted 8 lines
---
 ...ion-to-specify-numpy-header-location.patch |  5 ----
 ...Downgrade-numpy-version-needs-to-1.x.patch | 27 -------------------
 ...t.toml-don-t-pin-dependency-versions.patch | 11 +++-----
 ...andas_2.2.2.bb => python3-pandas_2.2.3.bb} |  3 +--
 4 files changed, 4 insertions(+), 42 deletions(-)
 delete mode 100644

meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch

Quoted 1 line
Quoted 1 line
 rename meta-python/recipes-devtools/python/{python3-pandas_2.2.2.bb

=> python3-pandas_2.2.3.bb} (87%)

Quoted 2 lines
Quoted 2 lines

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

Quoted 2 lines
Quoted 2 lines

index 87023a24ec..e83576eb62 100644
---

a/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch

Quoted 1 line
Quoted 1 line

+++

b/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch

Quoted 1 line

Review Signed-off-by: Gyorgy Sarvari <

Quoted 1 line
(quoted diff) +0 -0
@@ -25,15 +25,10 @@ Signed-off-by: Gyorgy Sarvari <

[email protected]>

Quoted 10 lines

meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch Signed-off-by: Gyorgy Sarvari <[email protected]>

Quoted 10 lines
meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch +0 -3
  2 files changed, 11 insertions(+), 3 deletions(-)
  create mode 100644 meson.options
 
-diff --git a/meson.options b/meson.options
-new file mode 100644
-index 0000000000..3d3a18d145
 --- /dev/null
 +++ b/meson.options
 @@ -0,0 +1 @@
 +option('numpy_inc_dir', type : 'string', description : 'The absolute

path to the numpy headers')

Quoted 6 lines
Quoted 6 lines
meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch +0 -2
-diff --git a/pandas/meson.build b/pandas/meson.build
-index 435103a..a08c77a 100644
 --- a/pandas/meson.build
 +++ b/pandas/meson.build
 @@ -3,17 +3,24 @@ incdir_numpy = run_command(py,

diff --git

a/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch b/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch

Quoted 3 lines
Quoted 3 lines

deleted file mode 100644
index b0ef8ce00c..0000000000
---

a/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch

Quoted 14 lines
Quoted 14 lines

+++ /dev/null

meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch deleted +0 -12
@@ -1,27 +0,0 @@
-From d81d95274d84ac51fc02e0fa91affc7f3cbefccb Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Sat, 24 Aug 2024 10:21:43 -0700
-Subject: [PATCH] pyproject.toml: Downgrade numpy version needs to 1.x
-
-Drop it when numpy is upgraded to 2.x or newer in core
-
-Upstream-Status: Inappropriate [OE workaround]
-
-Signed-off-by: Khem Raj <[email protected]>
----
- pyproject.toml | 2 +-
Quoted 8 lines

meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch

Quoted 8 lines
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch deleted +0 -8
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 5158d60..d3daa78 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -8,7 +8,7 @@ requires = [
-     "Cython>=3.0.5",  # Note: sync with setup.py, environment.yml

and asv.conf.json

Quoted 1 line

Review line 21

Quoted 1 line
(quoted diff) +0 -1
-     # Force numpy higher than 2.0rc1, so that built wheels are

compatible

Quoted 7 lines
Quoted 7 lines
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch deleted +0 -6
-     # with both numpy 1 and 2
--    "numpy>=2.0.0rc1",
-+    "numpy>=1.24.0",
-     "versioneer[toml]"
- ]
-

diff --git

a/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch b/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch

Quoted 2 lines
Quoted 2 lines

index f60f43a5b0..950f25303f 100644
---

a/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch

Quoted 1 line
Quoted 1 line

+++

b/meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch

Quoted 5 lines
Quoted 5 lines
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch +0 -0
@@ -14,8 +14,6 @@ Signed-off-by: Trevor Gamblin <[email protected]
 
  pyproject.toml | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
 
Quoted 10 lines

meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch index db9f055799..5158d60f59 100644 · line 30

Quoted 10 lines
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch +0 -2
-diff --git a/pyproject.toml b/pyproject.toml
-index db9f055799..5158d60f59 100644
 --- a/pyproject.toml
 +++ b/pyproject.toml

@@ -2,10 +2,10 @@

meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch +0 -1
@@ -27,11 +25,8 @@ index db9f055799..5158d60f59 100644
 +    "meson-python>=0.13.1",
 +    "meson>=1.2.1",
      "wheel",
--    "Cython==3.0.5",  # Note: sync with setup.py, environment.yml

and asv.conf.json

Quoted 1 line

Review index db9f055799..5158d60f59 100644 · line 28

Quoted 1 line
(quoted diff) +1 -0
+-    "Cython~=3.0.5",  # Note: sync with setup.py, environment.yml

and asv.conf.json

Quoted 1 line

Review index db9f055799..5158d60f59 100644 · line 29

Quoted 1 line
(quoted diff) +0 -0
 +    "Cython>=3.0.5",  # Note: sync with setup.py, environment.yml

and asv.conf.json

Quoted 1 line

Review index db9f055799..5158d60f59 100644 · line 32

Quoted 1 line
(quoted diff) +0 -1
-     # Force numpy higher than 2.0rc1, so that built wheels are

compatible

Quoted 1 line

Review index db9f055799..5158d60f59 100644 · line 30

Quoted 1 line
(quoted diff) +1 -0
+     # Force numpy higher than 2.0, so that built wheels are

compatible

Quoted 7 lines

Review

Quoted 7 lines
meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch +1 -4
      # with both numpy 1 and 2
-     "numpy>=2.0.0rc1",
---
-2.39.2
-
+     "numpy>=2.0",
(quoted diff) +0 -0

python3-pandas_2.2.2.bb b/meta-python/recipes-devtools/python/ python3-pandas_2.2.3.bb

Quoted 2 lines
Quoted 2 lines

similarity index 87%
rename from meta-python/recipes-devtools/python/

python3-pandas_2.2.2.bb

Quoted 5 lines

meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb LIC_FILES_CHKSUM =

Quoted 5 lines

rename to meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb index b956f5ca2f..3e41e4aa6f 100644

meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +0 -0
@@ -8,12 +8,11 @@ LIC_FILES_CHKSUM =

"file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a"

Quoted 3 lines

meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" · line 12

Quoted 3 lines
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +0 -0
 SRC_URI += " \
 

file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \

Quoted 1 line

meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb LIC_FILES_CHKSUM = · line 10

Quoted 1 line
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +0 -1
-

file://0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch \

Quoted 3 lines

meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb LIC_FILES_CHKSUM = · line 12

Quoted 3 lines
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +0 -0
             "
 
 SRC_URI:append:class-target = "

file://0001-BLD-add-option-to-specify-numpy-header-location.patch "

Quoted 2 lines

meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb LIC_FILES_CHKSUM = · line 14

Quoted 2 lines
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +0 -1
-SRC_URI[sha256sum] =

"9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54"

Quoted 1 line

meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb LIC_FILES_CHKSUM = · line 13

Quoted 1 line
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +1 -0
+SRC_URI[sha256sum] =

"4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667"

Quoted 10 lines

meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb LIC_FILES_CHKSUM = · line 18

Quoted 6 lines
meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +0 -0
 inherit pkgconfig pypi python_mesonpy cython
 
 
 
 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#117474):

https://lists.openembedded.org/g/openembedded-devel/message/117474

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/113179377/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-