@@ -31,6 +31,12 @@ PYTHON_SCIPY_DEPENDENCIES += \
lapack \
python-numpy \
python-pybind
+HOST_PYTHON_SCIPY_DEPENDENCIES += \
+ host-python-numpy \
+ host-python-pybind \
+ host-python-pythran \
+ host-lapack \
+ zlib
PYTHON_SCIPY_INSTALL_STAGING = YES
PYTHON_SCIPY_SETUP_TYPE = setuptools
@@ -55,4 +61,12 @@ define PYTHON_SCIPY_CONFIGURE_CMDS
echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg
endef
+define HOST_PYTHON_SCIPY_CONFIGURE_CMDS
+ -rm -f $(@D)/site.cfg
+ echo "[DEFAULT]" >> $(@D)/site.cfg
+ echo "library_dirs = $(HOST_DIR)/usr/lib" >> $(@D)/site.cfg
+ echo "include_dirs = $(HOST_DIR)/usr/include" >> $(@D)/site.cfg
+endef
+
$(eval $(python-package))
+$(eval $(host-python-package))
host-python-scipy is a build time dependency of python-scikitlearn Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com> --- package/python-scipy/python-scipy.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+)