summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pandas_3.0.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pandas_3.0.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pandas_3.0.0.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pandas_3.0.0.bb b/meta-python/recipes-devtools/python/python3-pandas_3.0.0.bb
new file mode 100644
index 0000000000..01f57b9aa9
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pandas_3.0.0.bb
@@ -0,0 +1,48 @@
1SUMMARY = "pandas library for high-performance data analysis tools"
2DESCRIPTION = "pandas is an open source, BSD-licensed library providing \
3high-performance, easy-to-use data structures and data analysis tools for \
4the Python programming language."
5HOMEPAGE = "https://pandas.pydata.org/"
6LICENSE = "BSD-3-Clause"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=e98642e1210ade884e5254ab18d55b7d"
8
9SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch "
10
11SRC_URI[sha256sum] = "0facf7e87d38f721f0af46fe70d97373a37701b1c09f7ed7aeeb292ade5c050f"
12
13CVE_PRODUCT = "pandas"
14
15inherit pkgconfig pypi python_mesonpy cython
16
17DEPENDS += " \
18 python3-numpy \
19 python3-versioneer-native \
20"
21
22CFLAGS:append:toolchain-clang = " -Wno-error=deprecated-declarations"
23
24RDEPENDS:${PN} += " \
25 python3-json \
26 python3-numpy \
27 python3-dateutil \
28 python3-dateutil-zoneinfo \
29 python3-pytz \
30 python3-profile \
31"
32
33PYTHONPATH:prepend:class-target = "${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}:"
34export PYTHONPATH
35
36do_compile:append() {
37 # Fix absolute paths in generated files
38 find ${B} -name "*.c" -o -name "*.cpp" | xargs -r \
39 sed -i 's|${WORKDIR}/pandas-${PV}/|${TARGET_DBGSRC_DIR}/|g'
40}
41
42do_install:prepend() {
43 sed -i -e 's;${S};;g' ${B}/pandas/_libs/sparse.cpython-*/pandas/_libs/sparse.pyx.c
44}
45
46EXTRA_OEMESON:append:class-target = " -Dnumpy_inc_dir=${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}/numpy/_core/include "
47
48BBCLASSEXTEND = "native"