From ef18ef563bee5e0c11ff94c518fae91b166296ac Mon Sep 17 00:00:00 2001 From: Chin Huat Ang Date: Wed, 9 Oct 2019 01:42:58 +0800 Subject: dldt-inference-engine: add PACKAGECONFIG for python API Add PACKAGECONFIG[python3] for building dldt-inference-engine-python3 package which contains the inference engine python API. Also tweak recipe to inherit python3native instead of relying on host python as building the python API requires python3-cython which might not be available on the host. Signed-off-by: Chin Huat Ang Signed-off-by: Anuj Mittal --- .../opencv/dldt-inference-engine_2019r2.bb | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'dynamic-layers') diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r2.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r2.bb index a7db09ae..b8d5d3d5 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r2.bb +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r2.bb @@ -27,7 +27,7 @@ SRC_URI[ma2x8x.sha256sum] = "93640eb13e235d3f71a83cd503c36ff8a63235349e1f528d903 LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://../LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" -inherit cmake ptest +inherit cmake ptest python3native S = "${WORKDIR}/git/inference-engine" @@ -38,7 +38,7 @@ EXTRA_OECMAKE += " \ -DENABLE_SAMPLES_CORE=1 \ -DENABLE_PLUGIN_RPATH=0 \ -DENABLE_GNA=0 \ - -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \ + -DPYTHON_EXECUTABLE=${PYTHON} \ -DTHREADING=TBB \ -DCMAKE_INSTALL_LOCAL_ONLY=OFF \ -DCMAKE_BUILD_TYPE=DebugWithRelInfo \ @@ -65,6 +65,7 @@ COMPATIBLE_HOST_libc-musl = "null" PACKAGECONFIG ?= "" PACKAGECONFIG[opencl] = "-DENABLE_CLDNN=1, -DENABLE_CLDNN=0, opencl-icd-loader, opencl-icd-loader intel-compute-runtime" +PACKAGECONFIG[python3] = "-DENABLE_PYTHON=ON -DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}, -DENABLE_PYTHON=OFF, python3-cython-native, python3" do_install_ptest_base_prepend() { # While not a Makefile based project that strictly falls into the category of @@ -74,9 +75,6 @@ do_install_ptest_base_prepend() { mv ${D}${bindir}/InferenceEngineUnitTests ${D}${PTEST_PATH}/ } -# Move inference engine samples into a separate package -PACKAGES =+ "${PN}-samples" - FILES_${PN}-dev = "${includedir} \ ${libdir}/cmake \ ${libdir}/libinference_engine.so \ @@ -86,4 +84,12 @@ FILES_${PN} += "${libdir}/lib*${SOLIBSDEV} \ ${datadir}/openvino \ " +# Move inference engine samples into a separate package +PACKAGES =+ "${PN}-samples" + FILES_${PN}-samples = "${bindir}" + +# Package for inference engine python API +PACKAGES =+ "${PN}-${PYTHON_PN}" + +FILES_${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}/openvino" -- cgit v1.2.3-54-g00ecf