On Wed, May 31, 2023 at 10:55 AM ChenQi <[email protected]> wrote:
>
> On 5/31/23 16:22, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <[email protected]>
> >
> > A significant number of python recipes don't specify all the run-time
> > dependencies required to at least be able to import all the installed
> > modules. This series is the result of a semi-automated run through all
> > python recipes in meta-python, building minimal images and verifying that
> > there are no import exceptions.
>
> I checked a few changes. Why are some recipes adding 'python3-unittest'
> as a runtime dependency?
>
> For example, python3-ldap does not seem to need it. I checked the codes,
> https://github.com/cannatag/ldap3, all unittest references reside inside
> the test/ directory.
>
> If it's a semi-automated run, then when it fails, I think the failed
> import commands could be recorded and put in the commit message. This
> could be achieved by using a template commit file which is then
> substituted to generate the actual commit file and using '-F' option to
> commit.
>
> Regards,
>
> Qi

In this case it's not ldap itself but slapdtest which is also shipped
and installed by the recipe. If someone ends up splitting it into its
propert ptest package then we could remove this dependency but as it
is now: it's impossible to import all shipped modules without unittest
so adding it at least makes it more correct.

Bart
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103028): 
https://lists.openembedded.org/g/openembedded-devel/message/103028
Mute This Topic: https://lists.openembedded.org/mt/99237903/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to