diff options
author | Malik Talha <talhamalik727x@gmail.com> | 2023-09-28 15:50:31 +0500 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-10-05 13:25:58 +0000 |
commit | 35e7b9d2774e8d104d0693e0a0758363c2afb16d (patch) | |
tree | 926eb79fc153cf68ed6b7a54cf68f6894ef50f07 /meta-offline-voice-agent/recipes-python/python3-scikit-learn/python3-scikit-learn_0.24.2.bb | |
parent | 39319e3a3bdfcc6c6da47035bf04b4255aec09e5 (diff) |
Add dependencies for intent engine snips
This adds the libraries for the snips intent engine.
Bug-AGL: SPEC-4856
Change-Id: I0acec6fdd1d0809ee2a0a52ee2c95cd86671d760
Signed-off-by: Malik Talha <talhamalik727x@gmail.com>
Diffstat (limited to 'meta-offline-voice-agent/recipes-python/python3-scikit-learn/python3-scikit-learn_0.24.2.bb')
-rw-r--r-- | meta-offline-voice-agent/recipes-python/python3-scikit-learn/python3-scikit-learn_0.24.2.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-offline-voice-agent/recipes-python/python3-scikit-learn/python3-scikit-learn_0.24.2.bb b/meta-offline-voice-agent/recipes-python/python3-scikit-learn/python3-scikit-learn_0.24.2.bb new file mode 100644 index 00000000..64a532f0 --- /dev/null +++ b/meta-offline-voice-agent/recipes-python/python3-scikit-learn/python3-scikit-learn_0.24.2.bb @@ -0,0 +1,36 @@ +SUMMARY = "A set of python modules for machine learning and data mining" +HOMEPAGE = "http://scikit-learn.org" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYING;md5=c8d7e027b3e67a2b1fe7fe85ebeb17d7" + +SRC_URI = "git://github.com/scikit-learn/scikit-learn.git;branch=0.24.X;protocol=https \ + file://0001-hack-around-numpy-get_include-to-force-looking-in-ta.patch \ + " +SRCREV = "15a949460dbf19e5e196b8ef48f9712b72a3b3c3" +S = "${WORKDIR}/git" + +DEPENDS += "python3-numpy-native python3-scipy-native python3-cython-native python3-numpy python3-scipy python3-cython" + +inherit setuptools3 pkgconfig python3-dir + +RDEPENDS:${PN} += "python3-numpy python3-scipy python3-joblib python3-threadpoolctl python3-pytest" + +export PYTHON_CROSSENV = "1" +export SKLEARN_BUILD_PARALLEL = "${@oe.utils.cpu_count()}" +export NPY_PKG_CONFIG_PATH = "${WORKDIR}/npy-pkg-config" +export NUMPY_INCLUDE_PATH = "${STAGING_DIR_TARGET}/usr/lib/python${PYTHON_BASEVERSION}/site-packages/numpy/core/include" + +# Tell Numpy to look in target sysroot site-packages directory for libraries +LDFLAGS:append = " -L${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/core/lib" + +do_compile:prepend() { + echo "[ALL]" > ${S}/site.cfg + echo "library_dirs = ${STAGING_LIBDIR}" >> ${S}/site.cfg + echo "include_dirs = ${STAGING_INCDIR}" >> ${S}/site.cfg + + mkdir -p ${WORKDIR}/npy-pkg-config + cp ${STAGING_DIR_TARGET}/usr/lib/python${PYTHON_BASEVERSION}/site-packages/numpy/core/lib/npy-pkg-config/* ${WORKDIR}/npy-pkg-config + sed -i 's&prefix=${pkgdir}&prefix=${STAGING_DIR_TARGET}/usr/lib/python${PYTHON_BASEVERSION}/site-packages/numpy/core&g' ${WORKDIR}/npy-pkg-config/npymath.ini + sed -i 's&prefix=${pkgdir}&prefix=${STAGING_DIR_TARGET}/usr/lib/python${PYTHON_BASEVERSION}/site-packages/numpy/core&g' ${WORKDIR}/npy-pkg-config/mlib.ini +} |