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-scipy/files/static-lib.patch | |
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-scipy/files/static-lib.patch')
-rw-r--r-- | meta-offline-voice-agent/recipes-python/python3-scipy/files/static-lib.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-offline-voice-agent/recipes-python/python3-scipy/files/static-lib.patch b/meta-offline-voice-agent/recipes-python/python3-scipy/files/static-lib.patch new file mode 100644 index 00000000..05b6133a --- /dev/null +++ b/meta-offline-voice-agent/recipes-python/python3-scipy/files/static-lib.patch @@ -0,0 +1,32 @@ +diff --git a/scipy/stats/setup.py b/scipy/stats/setup.py +index 52a5a36f0..fb5c16a6b 100644 +--- a/scipy/stats/setup.py ++++ b/scipy/stats/setup.py +@@ -64,10 +64,10 @@ def configuration(parent_package='', top_path=None): + biasedurn_libs = [] + biasedurn_libdirs = [] + else: +- biasedurn_libs = ['npyrandom', 'npymath'] +- biasedurn_libdirs = [join(np.get_include(), +- '..', '..', 'random', 'lib')] +- biasedurn_libdirs += get_info('npymath')['library_dirs'] ++ biasedurn_libs = [join(os.environ["NUMPY_INCLUDE_PATH"], ++ '..', '..', 'random', 'lib', 'libnpyrandom.a')] ++ biasedurn_libs.append([join(os.environ["NUMPY_INCLUDE_PATH"], ++ '..', '..', 'core', 'lib', 'libnpymath.a')]) + + ext = config.add_extension( + '_biasedurn', +@@ -79,11 +79,10 @@ def configuration(parent_package='', top_path=None): + 'biasedurn/stoc1.cpp', + 'biasedurn/stoc3.cpp'], + include_dirs=[np.get_include()], +- library_dirs=biasedurn_libdirs, +- libraries=biasedurn_libs, + define_macros=[('R_BUILD', None)], + language='c++', + depends=['biasedurn/stocR.h'], ++ extra_objects=biasedurn_libs, + ) + ext._pre_build_hook = pre_build_hook + |