* Python 3 internal package dependencies
@ 2017-06-08 6:47 Craig McQueen
2017-06-08 8:50 ` Burton, Ross
0 siblings, 1 reply; 5+ messages in thread
From: Craig McQueen @ 2017-06-08 6:47 UTC (permalink / raw)
To: yocto@yoctoproject.org
I found that the Python 3 internal package dependencies are incompletely specified. For example, I wanted to install python3-asyncio for my Python program to use. But when I tried to run it, it was missing some other Python 3 packages that asyncio depended on. I ended up making a Python 3 bbappend file with the following:
RDEPENDS_${PN}-asyncio += "${PN}-selectors"
RDEPENDS_${PN}-misc += "${PN}-multiprocessing"
RDEPENDS_${PN}-io += "${PN}-shell"
RDEPENDS_${PN}-shell += "${PN}-compression"
This just solved my immediate needs; I'm sure it's incomplete.
Is it worth trying to improve the internal package RDEPENDS in the Python 3 recipe, or is it better for recipes for Python apps to just manually list all the sub-dependencies as needed?
--
Craig McQueen
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Python 3 internal package dependencies
2017-06-08 6:47 Python 3 internal package dependencies Craig McQueen
@ 2017-06-08 8:50 ` Burton, Ross
2017-06-08 11:02 ` Alexander Kanavin
0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-06-08 8:50 UTC (permalink / raw)
To: Craig McQueen; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
On 8 June 2017 at 07:47, Craig McQueen <craig.mcqueen@innerrange.com> wrote:
> Is it worth trying to improve the internal package RDEPENDS in the Python
> 3 recipe, or is it better for recipes for Python apps to just manually list
> all the sub-dependencies as needed?
>
Definitely worth improving the internal dependencies, they're generated by
the scripts in oe-core/scripts/contrib/python.
Ross
[-- Attachment #2: Type: text/html, Size: 895 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Python 3 internal package dependencies
2017-06-08 8:50 ` Burton, Ross
@ 2017-06-08 11:02 ` Alexander Kanavin
2017-06-08 11:12 ` Burton, Ross
2017-06-12 7:27 ` Anders Darander
0 siblings, 2 replies; 5+ messages in thread
From: Alexander Kanavin @ 2017-06-08 11:02 UTC (permalink / raw)
To: Burton, Ross, Craig McQueen; +Cc: yocto@yoctoproject.org
On 06/08/2017 11:50 AM, Burton, Ross wrote:
> Is it worth trying to improve the internal package RDEPENDS in the
> Python 3 recipe, or is it better for recipes for Python apps to just
> manually list all the sub-dependencies as needed?
>
>
> Definitely worth improving the internal dependencies, they're generated
> by the scripts in oe-core/scripts/contrib/python.
I'll bite: should we just drop the the splitting of Python modules into
their own packages? In 2017, this is more trouble than it's worth, IMO.
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Python 3 internal package dependencies
2017-06-08 11:02 ` Alexander Kanavin
@ 2017-06-08 11:12 ` Burton, Ross
2017-06-12 7:27 ` Anders Darander
1 sibling, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2017-06-08 11:12 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
On 8 June 2017 at 12:02, Alexander Kanavin <
alexander.kanavin@linux.intel.com> wrote:
> I'll bite: should we just drop the the splitting of Python modules into
> their own packages? In 2017, this is more trouble than it's worth, IMO.
>
Hard to say without data. How big is the entire module set? What
percentage of that goes into e.g. core-image-sato if the dependencies are
fixed so python3-modules doesn't get installed? Are there just a few
modules that are large and a more maintainable split would be
minimal/everything (as Debian does, I believe)?
Ross
[-- Attachment #2: Type: text/html, Size: 1037 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Python 3 internal package dependencies
2017-06-08 11:02 ` Alexander Kanavin
2017-06-08 11:12 ` Burton, Ross
@ 2017-06-12 7:27 ` Anders Darander
1 sibling, 0 replies; 5+ messages in thread
From: Anders Darander @ 2017-06-12 7:27 UTC (permalink / raw)
To: yocto
* Alexander Kanavin <alexander.kanavin@linux.intel.com> [170608 13:04]:
> On 06/08/2017 11:50 AM, Burton, Ross wrote:
> > Is it worth trying to improve the internal package RDEPENDS in the
> > Python 3 recipe, or is it better for recipes for Python apps to just
> > manually list all the sub-dependencies as needed?
> > Definitely worth improving the internal dependencies, they're generated
> > by the scripts in oe-core/scripts/contrib/python.
> I'll bite: should we just drop the the splitting of Python modules into
> their own packages? In 2017, this is more trouble than it's worth, IMO.
NO.
If necessary, I'll prefer to add each and every module by hand, that I
need... That's a lot better than forcing everyone to have the complete
standard library installed.
Not everyone wants / can afford huge rootfs', but might still prefer /
require a few smaller python applications.
You'd be welcome to suggest that people try to install the complete
pyhton(3)-modules package, as that makes it easier for everyone with
large eMMC's and SD-cards, though.
Cheers,
Anders
--
Anders Darander, Senior System Architect
ChargeStorm AB / eStorm AB
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-12 7:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08 6:47 Python 3 internal package dependencies Craig McQueen
2017-06-08 8:50 ` Burton, Ross
2017-06-08 11:02 ` Alexander Kanavin
2017-06-08 11:12 ` Burton, Ross
2017-06-12 7:27 ` Anders Darander
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.