* Re: yocto Digest, Vol 50, Issue 54
[not found] <mailman.24730.1415986771.26702.yocto@yoctoproject.org>
@ 2014-11-14 18:52 ` Edward Wingate
2014-11-14 19:04 ` Gary Thomas
0 siblings, 1 reply; 2+ messages in thread
From: Edward Wingate @ 2014-11-14 18:52 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]
On Fri, Nov 14, 2014 at 9:39 AM, <yocto-request@yoctoproject.org> wrote:
> From: Gary Thomas <gary@mlbassoc.com>
>
> On 2014-11-14 10:10, Edward Wingate wrote:
> >
> > The ramdisk image ballooned to 22MB though. It's expected, but due to
> flash size constraints, Python may not be an option in this case.
>
> You can always just bring in the packages you need (python-modules is a
> pretty heavy hammer!) Python is split into ~90 separate packages, each
> with a [small] set of modules/functionality.
>
>
I would really like to try this. How do I find out what the various python
packages are and what's in each package? I tried
http://layers.openembedded.org/layerindex/branch/master/recipes/, but don't
find what I'm looking for (right now, Python's built-in logging and codecs
modules).
I also can't find where the python-modules recipe is located. I thought
that might give me a clue as to what all the modules are and where they
are. I would think python-modules would be located in or
poky/meta/recipes-devtools/python or meta-openembedded/meta-python where it
seems all the other python stuff are, but it's not there that I can see.
Where is python-core defined, for that matter? I can't find that anywhere
either. All references to python-core and python-modules are in the
build/tmp directory, but I don't see the source definition.
[-- Attachment #2: Type: text/html, Size: 2094 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: yocto Digest, Vol 50, Issue 54
2014-11-14 18:52 ` yocto Digest, Vol 50, Issue 54 Edward Wingate
@ 2014-11-14 19:04 ` Gary Thomas
0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2014-11-14 19:04 UTC (permalink / raw)
To: yocto
On 2014-11-14 11:52, Edward Wingate wrote:
> On Fri, Nov 14, 2014 at 9:39 AM, <yocto-request@yoctoproject.org <mailto:yocto-request@yoctoproject.org>> wrote:
>
> From: Gary Thomas <gary@mlbassoc.com <mailto:gary@mlbassoc.com>>
>
> On 2014-11-14 10:10, Edward Wingate wrote:
> >
> > The ramdisk image ballooned to 22MB though. It's expected, but due to
>
> > flash size constraints, Python may not be an option in this case.
>
> You can always just bring in the packages you need (python-modules is a
> pretty heavy hammer!) Python is split into ~90 separate packages, each
> with a [small] set of modules/functionality.
>
>
> I would really like to try this. How do I find out what the various python packages are and what's in each package? I tried
> http://layers.openembedded.org/layerindex/branch/master/recipes/, but don't find what I'm looking for (right now, Python's built-in logging and codecs modules).
Try looking in your build tree. Depending on your target configuration,
you'll have either RPM or IPK packages and the python modules end up in
the architecture dependent collection. For example, on my i.MX6 (ARM)
target, I have:
$ ls tmp/deploy/ipk/cortexa7hf-vfp-neon/python*
tmp/deploy/ipk/cortexa7hf-vfp-neon/python-2to3_2.7.3-r0.3.0_cortexa7hf-vfp-neon.ipk
tmp/deploy/ipk/cortexa7hf-vfp-neon/python-audio_2.7.3-r0.3.0_cortexa7hf-vfp-neon.ipk
tmp/deploy/ipk/cortexa7hf-vfp-neon/python-bsddb_2.7.3-r0.3.0_cortexa7hf-vfp-neon.ipk
tmp/deploy/ipk/cortexa7hf-vfp-neon/python-codecs_2.7.3-r0.3.0_cortexa7hf-vfp-neon.ipk
tmp/deploy/ipk/cortexa7hf-vfp-neon/python-compile_2.7.3-r0.3.0_cortexa7hf-vfp-neon.ipk
...
It can get a bit tricky to decide which package contains the module(s) you need
as many of them are grouped together. If you know the name of the module, you
can typically find it via a quick search, e.g. to find the package that contains
the htmllib module:
$ find tmp/work/cortexa7hf-vfp-neon-amltd-linux-gnueabi/python/2.7.3-r0.3/packages-split/ -name htmllib.py
tmp/work/cortexa7hf-vfp-neon-amltd-linux-gnueabi/python/2.7.3-r0.3/packages-split/python-html/usr/lib/python2.7/htmllib.py
so, in this case I'm looking for the 'python-html' package.
Once you determine the package name, just add that to your image (or if you
have things set up for package updates, you can just add the packages directly
on your board).
>
> I also can't find where the python-modules recipe is located. I thought that might give me a clue as to what all the modules are and where they are. I would think python-modules
> would be located in or poky/meta/recipes-devtools/python or meta-openembedded/meta-python where it seems all the other python stuff are, but it's not there that I can see. Where
> is python-core defined, for that matter? I can't find that anywhere either. All references to python-core and python-modules are in the build/tmp directory, but I don't see the
> source definition.
Everything comes from just the single 'python' recipe (lots
of magic lives within)
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-14 19:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.24730.1415986771.26702.yocto@yoctoproject.org>
2014-11-14 18:52 ` yocto Digest, Vol 50, Issue 54 Edward Wingate
2014-11-14 19:04 ` Gary Thomas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.