Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: mike.looijm...@topicproducts.com
W: www.topic.nl

Please consider the environment before printing this e-mail
On 18-01-2022 06:29, Sam via lists.yoctoproject.org wrote:
Was wondering if there was a way to edit the distitils3.bbclass or a similar file to only install the python .pyc files onto a yocto image?

I saw something about editing the distutils-common-base.bbclass online, however, it was only mentioned and not elaborated on.

I am currently working with a setup that installs .py files, then generates the .pyc files and removes the .py files. I am now looking for a method that will only install the .pyc files.

Any help would be appreciated.

What works well in many recipes is to just move the source files into their own packages, e.g.

PACKAGES =+ "${PN}-src"
FILES_${PN}-src = "${mypythondir}/*.py"

That removes the py files from the package, but still allows you to install the sources to target if you need them...

If you don't want a "src" package, adding them to the "dbg" package also works okay.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55931): https://lists.yoctoproject.org/g/yocto/message/55931
Mute This Topic: https://lists.yoctoproject.org/mt/88503492/21656
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to