openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <ross.burton@arm.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH 1/2] classes/setuptools: use tomllib instead of regex to parse pyproject.toml
Date: Wed, 09 Sep 2026 19:37:33 +0200	[thread overview]
Message-ID: <DLAYVDPOCV72.MSLAAVLWK6WS@bootlin.com> (raw)
In-Reply-To: <20260909151906.3417094-1-ross.burton@arm.com>

On Wed Sep 9, 2026 at 5:19 PM CEST, Ross Burton via lists.openembedded.org wrote:
> BitBake now vendors in tomli[1] for when the host Python is older than
> 3.11 so doesn't have tomllib. Rewrite the pyproject.toml parsing from
> regexs to tomllib.
>
> Also ensure that the functions in setuptools3 and setuptools_legacy are
> identical, as they had diverged.
>
> [1] bitbake 69810e0c0a ("lib/bb/_vendor: resync to add tomli")
>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---

Hi Ross,

I've been getting some error on the autobuilder, event though I'm in
sync on the bitbake side:

ERROR: python3-semantic-version-native-2.10.0-r0 do_check_backend: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_check_backend(d)
     0003:
File: '/srv/pokybuild/yocto-worker/qemux86-64-ptest/build/layers/openembedded-core/meta/classes-recipe/setuptools3.bbclass', lineno: 27, function: do_check_backend
     0023:
     0024:    try:
     0025:        import tomllib
     0026:    except ImportError:
 *** 0027:        import bb._vendor_tomli as tomllib
     0028:
     0029:    filename = d.expand("${SETUPTOOLS_SETUP_PATH}/pyproject.toml")
     0030:    if os.path.exists(filename):
     0031:        with open(filename, "rb") as f:
Exception: ModuleNotFoundError: No module named 'bb._vendor_tomli'

https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/4525

Any clue about what might be wrong here?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



  parent reply	other threads:[~2026-09-09 17:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-09 15:19 [PATCH 1/2] classes/setuptools: use tomllib instead of regex to parse pyproject.toml Ross Burton
2026-09-09 15:19 ` [PATCH 2/2] classes/cargo-update-recipe-crates: use tomllib directly Ross Burton
2026-09-09 17:37 ` Mathieu Dubois-Briand [this message]
2026-09-09 21:45   ` [OE-core] [PATCH 1/2] classes/setuptools: use tomllib instead of regex to parse pyproject.toml Ross Burton

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=DLAYVDPOCV72.MSLAAVLWK6WS@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@arm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).