It would be fairly simple to make a ‘dummy’ python3 recipe, like there already is for perl, which you can explicitly add to the SDK to use the host python. This would break anything inside the SDK which is a Python module with a C extension, as those need to be build against the right python.
Ross From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> on behalf of Alexander Kanavin via lists.yoctoproject.org <alex.kanavin=gmail....@lists.yoctoproject.org> Date: Tuesday, 7 June 2022 at 14:56 To: Vinothkumar Eswaran <evinoth1...@gmail.com> Cc: Yocto-mailing-list <yocto@lists.yoctoproject.org> Subject: Re: [yocto] How to remove the python3 from Yocto SDK Python3 isn't directly pulled into the SDK, but is a runtime dependency of other items, such as meson. You can check that by $ bitbake core-image-minimal -g -c populate_sdk and reading/grepping the .dot file for nativesdk-python3. Meson in turn is pulled in by the sdk packagegroup: $ grep nativesdk-meson task-depends.dot |grep packagegroup "nativesdk-packagegroup-sdk-host.do_package_write_rpm" -> "nativesdk-meson.do_packagedata" I guess if you drop all python consumers from packagegroups, then python won't get pulled in either, but that is swimming in uncharted waters, and you'll need to ensure replacements from the host are available. Alex On Tue, 7 Jun 2022 at 14:21, Vinothkumar Eswaran <evinoth1...@gmail.com> wrote: > > Hi Alex, > > yes the absolute path works. May I ask why python3 is part of the SDK and is > it possible to remove it from the SDK ? > > regards, > > Vinothkumar > > > > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#57308): https://lists.yoctoproject.org/g/yocto/message/57308 Mute This Topic: https://lists.yoctoproject.org/mt/91597064/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-