Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C74CC54E68 for ; Thu, 21 Mar 2024 07:29:47 +0000 (UTC) Subject: Export python packages installed using pypi to target To: yocto@lists.yoctoproject.org From: "Ashu Joshi" X-Originating-Location: Pune, Maharashtra, IN (165.225.120.114) X-Originating-Platform: Windows Chrome 122 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 21 Mar 2024 00:29:46 -0700 Message-ID: Content-Type: multipart/alternative; boundary="QQknf7rj1XAL2EeAe2vM" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Mar 2024 07:29:47 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/62809 --QQknf7rj1XAL2EeAe2vM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I am trying to install wirpas_gateway package from pypi using yocto recipe.= . Once service is build completely and=C2=A0 I flash image to target, i don= 't see any of the installed packages. Does anyone has nay reference how to = install these packages in target as well. I dont see any generated binary w= hich i can ship tp target. However, source code of the package can be seen = in work directory. Currently I am trying to do something like below: do_install() { install -m 0755 -d ${D}${sysconfdir}/systemd/system install -m 0755 ${WORKDIR}/wirepasTransport.service ${D}${sysconfdir}/syste= md/system install -m 0755 -d ${D}/usr/share install -m 0644 ${WORKDIR}/settings.yml ${D}/usr/share install -m 0755 -d ${D}/usr/share/wirepas_gateway install -m 0644 ${WORKDIR}/wirepas_gateway-1.4.3 ${D}/usr/share/wirepas_gat= eway } FILES_${PN} +=3D "usr/share/wirepas_gateway" FILES_${PN} +=3D "/usr/share/wirepas_gateway/wirepas_gateway-1.4.3" FILES_${PN} +=3D "${sysconfdir}/systemd/system/wirepasTransport.service" FILES_${PN} +=3D "/usr/share/settings.yml" wirepas_gateway-1.4.3 is directory which contains setup and other files. Ge= tting error while trying to ship this to target. --QQknf7rj1XAL2EeAe2vM Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello,
I am trying to install wirpas_gateway package from pypi using y= octo recipe.. Once service is build completely and  I flash image to t= arget, i don't see any of the installed packages. Does anyone has nay refer= ence how to install these packages in target as well. I dont see any genera= ted binary which i can ship tp target. However, source code of the package = can be seen in work directory. Currently I am trying to do something like b= elow:

do_install() {
      install -m 0755 -d ${D}${sysconfdir}/systemd/syst= em 
      install -m 0755 ${WORKDIR}/wirepasTransport.servi= ce ${D}${sysconfdir}/systemd/system
      
      install -m 0755 -d ${D}/usr/share
      install -m 0644 ${WORKDIR}/settings.yml ${D}/usr/= share
      
      install -m 0755 -d ${D}/usr/share/wirepas_gateway=
      install -m 0644 ${WORKDIR}/wirepas_gateway-1.4.3 = ${D}/usr/share/wirepas_gateway
}
 
FILES_${PN} +=3D "usr/share/wirepas_gateway"
FILES_${PN} +=3D "/usr/share/wirepas_gateway/wirepas_gateway-1.4.3"
FILES_${PN} +=3D "${sysconfdir}/systemd/system/wirepasTransport.servic= e"
FILES_${PN} +=3D "/usr/share/settings.yml"

wirepas_gateway-= 1.4.3 is directory which contains setup and other files. Getting error whil= e trying to ship this to target.

3D""
--QQknf7rj1XAL2EeAe2vM--