diff options
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.bb | 48 |
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 @@ | |||
| 1 | SUMMARY = "pandas library for high-performance data analysis tools" | ||
| 2 | DESCRIPTION = "pandas is an open source, BSD-licensed library providing \ | ||
| 3 | high-performance, easy-to-use data structures and data analysis tools for \ | ||
| 4 | the Python programming language." | ||
| 5 | HOMEPAGE = "https://pandas.pydata.org/" | ||
| 6 | LICENSE = "BSD-3-Clause" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e98642e1210ade884e5254ab18d55b7d" | ||
| 8 | |||
| 9 | SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch " | ||
| 10 | |||
| 11 | SRC_URI[sha256sum] = "0facf7e87d38f721f0af46fe70d97373a37701b1c09f7ed7aeeb292ade5c050f" | ||
| 12 | |||
| 13 | CVE_PRODUCT = "pandas" | ||
| 14 | |||
| 15 | inherit pkgconfig pypi python_mesonpy cython | ||
| 16 | |||
| 17 | DEPENDS += " \ | ||
| 18 | python3-numpy \ | ||
| 19 | python3-versioneer-native \ | ||
| 20 | " | ||
| 21 | |||
| 22 | CFLAGS:append:toolchain-clang = " -Wno-error=deprecated-declarations" | ||
| 23 | |||
| 24 | RDEPENDS:${PN} += " \ | ||
| 25 | python3-json \ | ||
| 26 | python3-numpy \ | ||
| 27 | python3-dateutil \ | ||
| 28 | python3-dateutil-zoneinfo \ | ||
| 29 | python3-pytz \ | ||
| 30 | python3-profile \ | ||
| 31 | " | ||
| 32 | |||
| 33 | PYTHONPATH:prepend:class-target = "${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}:" | ||
| 34 | export PYTHONPATH | ||
| 35 | |||
| 36 | do_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 | |||
| 42 | do_install:prepend() { | ||
| 43 | sed -i -e 's;${S};;g' ${B}/pandas/_libs/sparse.cpython-*/pandas/_libs/sparse.pyx.c | ||
| 44 | } | ||
| 45 | |||
| 46 | EXTRA_OEMESON:append:class-target = " -Dnumpy_inc_dir=${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}/numpy/_core/include " | ||
| 47 | |||
| 48 | BBCLASSEXTEND = "native" | ||
