All of lore.kernel.org
 help / color / mirror / Atom feed
From: Perceval <perceval_arenou@trimble.com>
To: Ross Burton <Ross.Burton@arm.com>
Cc: Yocto-mailing-list <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] extend python3 manifest to add a module
Date: Wed, 14 Feb 2024 15:03:40 +0100	[thread overview]
Message-ID: <42NU8S.WT0Y3BGIDTIA1@trimble.com> (raw)
In-Reply-To: <CF199512-3ED8-4845-AE0D-3F3FEFCD02A6@arm.com>

[-- Attachment #1: Type: text/plain, Size: 1884 bytes --]

It seems that the dataclasses is not packaged in a dedicated package on 
the dunfell branch according to sources here  
<https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/python/python3/python3-manifest.json?h=dunfell>

So it ends up in python3-misc which have a lot of things:
$ oe-pkgdata-util find-path /usr/lib/python3.8/dataclasses.py
python3-misc: /usr/lib/python3.8/dataclasses.py

Should we package it in a dedicated package or another one? What would 
you suggest?

Perceval




On mer., févr. 14 2024 at 11:24:41 +0000, Ross Burton 
<Ross.Burton@arm.com> wrote:
> On 14 Feb 2024, at 09:54, Perceval via lists.yoctoproject.org 
> <perceval_arenou=trimble.com@lists.yoctoproject.org 
> <mailto:perceval_arenou=trimble.com@lists.yoctoproject.org>> wrote:
>> 
>>  Hello,
>> 
>>  I'm building an image on the dunfell branch.
>>  I would like to add dataclasses module in python3. For that I know 
>> that I should add it to the python3-manifest.json.
>>  I tried to add my new manifest file in SRC_URI using a bbappend. It 
>> didn't work as the manifest file is red by a anonymous python 
>> function on parsing:
>> 
>>  filename = os.path.join(d.getVar('THISDIR'), 'python3', 
>> 'python3-manifest.json')
>> 
>>  What should I do to add dataclasses to my python3 installation? 
>> What is the suggested method or best practice for that operation?
>>  I would like to avoid forking openembedded-core just for that.
> 
> The manifest simply defines how the packages are split up, the 
> dataclasses module is always packaged.
> 
> For some reason, it appears to be part of python3-profile in my build:
> 
> $ oe-pkgdata-util find-path /usr/lib/python3.12/dataclasses.py
> python3-profile: /usr/lib/python3.12/dataclasses.py
> 
> That’s not right though, we should put that in a better package.
> 
> Ross


[-- Attachment #2: Type: text/html, Size: 2303 bytes --]

  reply	other threads:[~2024-02-14 14:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-14  9:54 extend python3 manifest to add a module Perceval
2024-02-14 11:24 ` [yocto] " Ross Burton
2024-02-14 14:03   ` Perceval [this message]
2024-02-14 14:15     ` Ross Burton
2024-02-14 14:26       ` Perceval

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42NU8S.WT0Y3BGIDTIA1@trimble.com \
    --to=perceval_arenou@trimble.com \
    --cc=Ross.Burton@arm.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.