python3-pandas_2.2.3.bb 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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=cb819092901ddb13a7d0a4f5e05f098a"
  8. SRC_URI += " \
  9. file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \
  10. "
  11. SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch "
  12. SRC_URI[sha256sum] = "4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667"
  13. inherit pkgconfig pypi python_mesonpy cython
  14. DEPENDS += " \
  15. python3-numpy \
  16. python3-versioneer-native \
  17. "
  18. CFLAGS:append:toolchain-clang = " -Wno-error=deprecated-declarations"
  19. RDEPENDS:${PN} += " \
  20. python3-json \
  21. python3-numpy \
  22. python3-dateutil \
  23. python3-dateutil-zoneinfo \
  24. python3-pytz \
  25. python3-profile \
  26. "
  27. PYTHONPATH:prepend:class-target = "${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}:"
  28. export PYTHONPATH
  29. do_compile:append() {
  30. # Fix absolute paths in generated files
  31. find ${B} -name "*.c" -o -name "*.cpp" | xargs -r \
  32. sed -i 's|${WORKDIR}/pandas-${PV}/|${TARGET_DBGSRC_DIR}/|g'
  33. }
  34. EXTRA_OEMESON:append:class-target = " -Dnumpy_inc_dir=${RECIPE_SYSROOT}${PYTHON_SITEPACKAGES_DIR}/numpy/_core/include "