I compiled the tensorrt python binding for a specific version of python. It doesn't have other python dependencies. Now I would like to install the compiled .whl file in a yocto image. I tried with the following recipe:
SUMMARY = "NVIDIA® TensorRT™, an SDK for high-performance deep learning inference, includes a deep learning inference optimizer and runtime that delivers low latency and high throughput for inference applications."
HOMEPAGE = "https://github.com/NVIDIA/TensorRT"
SRC_URI = "file://tensorrt-8.2.1.9-cp38-none-linux_aarch64.whl"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
DEPENDS += "python3 python3-pip"
FILES_${PN} += "\
${libdir}/${PYTHON_DIR}/site-packages/* \
"
do_install() {
pip install ${S}/tensorrt-8.2.1.9-cp38-none-linux_aarch64.whl
}
Unfortunately the recipe fails at the do_install step: ERROR: Execution of '/home/user/Desktop/tegra-demo-distro/build/tmp/work/aarch64-oe4t-linux/tensorrt/8.2.1-r0/temp/run.do_install.56472' failed with exit code 127