Re: [yocto] source-less python

2022-11-17 Thread Yishai Jaffe
Seems like a shame not to add this feature for everyone to use... Yishai Jaffe On Thu, Nov 17, 2022, 2:34 PM Alexander Kanavin wrote: > Making your own! You can have it added to the layer index for better > publicity. > > Alex > > On Thu, 17 Nov 2022 at 13:27, Yishai Jaffe wrote: > > > >

Re: [yocto] source-less python

2022-11-17 Thread Alexander Kanavin
Making your own! You can have it added to the layer index for better publicity. Alex On Thu, 17 Nov 2022 at 13:27, Yishai Jaffe wrote: > > What layer would you suggest? > > Yishai Jaffe > > On Thu, Nov 17, 2022, 2:21 PM Alexander Kanavin > wrote: >> >> You can start by placing it in a

Re: [yocto] source-less python

2022-11-17 Thread Yishai Jaffe
What layer would you suggest? Yishai Jaffe On Thu, Nov 17, 2022, 2:21 PM Alexander Kanavin wrote: > You can start by placing it in a separate layer? > > Alex > > On Thu, 17 Nov 2022 at 13:04, Yishai Jaffe wrote: > > > > I assume by core you mean openembedded-core/poky, yes? > > > > So where

Re: [yocto] source-less python

2022-11-17 Thread Alexander Kanavin
You can start by placing it in a separate layer? Alex On Thu, 17 Nov 2022 at 13:04, Yishai Jaffe wrote: > > I assume by core you mean openembedded-core/poky, yes? > > So where would you add it to? > > Seems to me like a very useful feature that many people would use if they > knew the option

Re: [yocto] source-less python

2022-11-17 Thread Yishai Jaffe
I assume by core you mean openembedded-core/poky, yes? So where would you add it to? Seems to me like a very useful feature that many people would use if they knew the option exists. Also, I noticed that in the recipe for python there is a variable named INCLUDE_PYC which does exactly what you

Re: [yocto] source-less python

2022-11-17 Thread Alexander Kanavin
I just wonder if this should really be in core. The standards for core are high: it needs to be both testable and tested, and there's only so many possible options and tweaks where things can regress that we can take. On the other hand, there has not been much demand for it. Alex On Thu, 17 Nov

Re: [yocto] source-less python

2022-11-17 Thread Yishai Jaffe
Hi Alexander, After some research, these are the numbers I came up with for compiling core-image-minimal with python3-core: Normal compilation: tar.bz2 - 6.6MB squashfs-xz - 6.1MB With my pyc-only patch: tar.bz2 - 5.8MB squashfs-xz - 5.2MB So that's about a 15% decrease in size. Again, this is

Re: [yocto] source-less python

2022-11-13 Thread Federico Pellegrin
Hello Alex, Il giorno dom 13 nov 2022 alle ore 16:12 Alexander Kanavin < alex.kana...@gmail.com> ha scritto: > Generally we slim down python installations by not installing all of > the standard library, and rather having precise dependencies for > specific modules. Can you illustrate the kind

Re: [yocto] source-less python

2022-11-13 Thread Alexander Kanavin
Generally we slim down python installations by not installing all of the standard library, and rather having precise dependencies for specific modules. Can you illustrate the kind of space savings that can be gained in actual numbers? Another issue is that this should be supported upstream and in

Re: [yocto] source-less python

2022-11-13 Thread Federico Pellegrin
Hello, Just as a small reference since I raised some doubts and questions in Buildroot community on this: there has been also some troubles to understand the correctness or not there (as I found some packages with problems due to this source-less management) and this then sparked, besides

Re: [yocto] source-less python

2022-07-11 Thread Aurum Nitrogen
Hi, So after a little bit of research, I've implemented this feature in poky. The way buildroot works, is that it doesn't create any .pyc files during the build process of single packages but has a post rootfs hook that (If that's what the user has configured) compiles the .py files into .pyc

Re: [yocto] source-less python

2022-06-23 Thread Ross Burton
On 23 Jun 2022, at 23:40, Aurum Nitrogen via lists.yoctoproject.org wrote: > > Hi, > I was wondering if there has been talk about support for source-less python > on an image. Installing py and pyc files doubles the size of python on the > rootfs. I can imagine this being implemented as an

Re: [yocto] source-less python

2022-06-23 Thread Alexander Kanavin
I don't remember any such discussion. If you want this to happen, you are welcome to develop the feature. Alex On Thu, 23 Jun 2022 at 16:39, Aurum Nitrogen wrote: > > Hi, > I was wondering if there has been talk about support for source-less python > on an image. Installing py and pyc files