[yocto] Pre-compiling Python Byte Code

Chris Trobridge christrobridge at hotmail.com
Wed May 10 04:05:28 PDT 2017


Thanks Ross and Jussi,


python3native works in the short term and in the longer term I will look into distutils/setuptools.

Cheers,
Chris

________________________________
From: Burton, Ross <ross.burton at intel.com>
Sent: 05 May 2017 10:43
To: Chris Trobridge
Cc: Yocto List
Subject: Re: [yocto] Pre-compiling Python Byte Code


On 3 May 2017 at 19:50, Chris Trobridge <christrobridge at hotmail.com<mailto:christrobridge at hotmail.com>> wrote:

The following works, as it uses the native python3 compiled by bitbake but it feels a little contrived.  Is there a better way of specifying the native python3 interpreter, or a better way of getting my python byte code compiled prior to generating the packages?

If you inherit python3native then "python3" will be the native python3.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170510/a0ab7a95/attachment.html>


More information about the yocto mailing list