diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch | 5 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch | 27 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pandas/0001-pyproject.toml-don-t-pin-dependency-versions.patch | 11 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb (renamed from meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb) | 9 |
4 files changed, 10 insertions, 42 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 87023a24ec..e83576eb62 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 | |||
@@ -25,15 +25,10 @@ Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | |||
25 | 2 files changed, 11 insertions(+), 3 deletions(-) | 25 | 2 files changed, 11 insertions(+), 3 deletions(-) |
26 | create mode 100644 meson.options | 26 | create mode 100644 meson.options |
27 | 27 | ||
28 | diff --git a/meson.options b/meson.options | ||
29 | new file mode 100644 | ||
30 | index 0000000000..3d3a18d145 | ||
31 | --- /dev/null | 28 | --- /dev/null |
32 | +++ b/meson.options | 29 | +++ b/meson.options |
33 | @@ -0,0 +1 @@ | 30 | @@ -0,0 +1 @@ |
34 | +option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers') | 31 | +option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers') |
35 | diff --git a/pandas/meson.build b/pandas/meson.build | ||
36 | index 435103a..a08c77a 100644 | ||
37 | --- a/pandas/meson.build | 32 | --- a/pandas/meson.build |
38 | +++ b/pandas/meson.build | 33 | +++ b/pandas/meson.build |
39 | @@ -3,17 +3,24 @@ incdir_numpy = run_command(py, | 34 | @@ -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 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 +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | From d81d95274d84ac51fc02e0fa91affc7f3cbefccb Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 24 Aug 2024 10:21:43 -0700 | ||
4 | Subject: [PATCH] pyproject.toml: Downgrade numpy version needs to 1.x | ||
5 | |||
6 | Drop it when numpy is upgraded to 2.x or newer in core | ||
7 | |||
8 | Upstream-Status: Inappropriate [OE workaround] | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | pyproject.toml | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/pyproject.toml b/pyproject.toml | ||
16 | index 5158d60..d3daa78 100644 | ||
17 | --- a/pyproject.toml | ||
18 | +++ b/pyproject.toml | ||
19 | @@ -8,7 +8,7 @@ requires = [ | ||
20 | "Cython>=3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json | ||
21 | # Force numpy higher than 2.0rc1, so that built wheels are compatible | ||
22 | # with both numpy 1 and 2 | ||
23 | - "numpy>=2.0.0rc1", | ||
24 | + "numpy>=1.24.0", | ||
25 | "versioneer[toml]" | ||
26 | ] | ||
27 | |||
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 index f60f43a5b0..950f25303f 100644 --- 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 | |||
@@ -14,8 +14,6 @@ Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> | |||
14 | pyproject.toml | 6 +++--- | 14 | pyproject.toml | 6 +++--- |
15 | 1 file changed, 3 insertions(+), 3 deletions(-) | 15 | 1 file changed, 3 insertions(+), 3 deletions(-) |
16 | 16 | ||
17 | diff --git a/pyproject.toml b/pyproject.toml | ||
18 | index db9f055799..5158d60f59 100644 | ||
19 | --- a/pyproject.toml | 17 | --- a/pyproject.toml |
20 | +++ b/pyproject.toml | 18 | +++ b/pyproject.toml |
21 | @@ -2,10 +2,10 @@ | 19 | @@ -2,10 +2,10 @@ |
@@ -27,11 +25,8 @@ index db9f055799..5158d60f59 100644 | |||
27 | + "meson-python>=0.13.1", | 25 | + "meson-python>=0.13.1", |
28 | + "meson>=1.2.1", | 26 | + "meson>=1.2.1", |
29 | "wheel", | 27 | "wheel", |
30 | - "Cython==3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json | 28 | - "Cython~=3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json |
31 | + "Cython>=3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json | 29 | + "Cython>=3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json |
32 | # Force numpy higher than 2.0rc1, so that built wheels are compatible | 30 | # Force numpy higher than 2.0, so that built wheels are compatible |
33 | # with both numpy 1 and 2 | 31 | # with both numpy 1 and 2 |
34 | "numpy>=2.0.0rc1", | 32 | "numpy>=2.0", |
35 | -- | ||
36 | 2.39.2 | ||
37 | |||
diff --git a/meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb b/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb index b956f5ca2f..c7e3ec8fec 100644 --- a/meta-python/recipes-devtools/python/python3-pandas_2.2.2.bb +++ b/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb | |||
@@ -8,12 +8,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" | |||
8 | 8 | ||
9 | SRC_URI += " \ | 9 | SRC_URI += " \ |
10 | file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \ | 10 | file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \ |
11 | file://0001-pyproject.toml-Downgrade-numpy-version-needs-to-1.x.patch \ | ||
12 | " | 11 | " |
13 | 12 | ||
14 | SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch " | 13 | SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch " |
15 | 14 | ||
16 | SRC_URI[sha256sum] = "9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54" | 15 | SRC_URI[sha256sum] = "4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667" |
17 | 16 | ||
18 | inherit pkgconfig pypi python_mesonpy cython | 17 | inherit pkgconfig pypi python_mesonpy cython |
19 | 18 | ||
@@ -36,4 +35,10 @@ RDEPENDS:${PN} += " \ | |||
36 | PYTHONPATH:prepend:class-target = "${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}:" | 35 | PYTHONPATH:prepend:class-target = "${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}:" |
37 | export PYTHONPATH | 36 | export PYTHONPATH |
38 | 37 | ||
38 | do_compile:append() { | ||
39 | # Fix absolute paths in generated files | ||
40 | find ${B} -name "*.c" -o -name "*.cpp" | xargs -r \ | ||
41 | sed -i 's|${WORKDIR}/pandas-${PV}/|${TARGET_DBGSRC_DIR}/|g' | ||
42 | } | ||
43 | |||
39 | EXTRA_OEMESON:append:class-target = " -Dnumpy_inc_dir=${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}/numpy/_core/include " | 44 | EXTRA_OEMESON:append:class-target = " -Dnumpy_inc_dir=${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}/numpy/_core/include " |