diff mbox series

[v2,1/4] python3-setuptools: upgrade 80.9.0 -> 82.0.0

Message ID 20260304045413.3265198-1-hongxu.jia@windriver.com
State Accepted, archived
Commit ab6b2bf7b555d3516abea6255b800fe6f9673a69
Headers show
Series [v2,1/4] python3-setuptools: upgrade 80.9.0 -> 82.0.0 | expand

Commit Message

Hongxu Jia March 4, 2026, 4:54 a.m. UTC
Remove python3-pkg-resources

History v82.0.0 [1]:

Deprecations and Removals
- pkg_resources has been removed from Setuptools. Most common uses of pkg_resources have
  been superseded by the importlib.resources and importlib.metadata projects. Projects
  and environments relying on pkg_resources for namespace packages or other behavior
  should depend on older versions of setuptools. (#3085)

[1] https://setuptools.pypa.io/en/stable/history.html#v82-0-0

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 ...ysconfig.py-make-it-possible-to-substite.patch |  2 +-
 ...ols_80.9.0.bb => python3-setuptools_82.0.0.bb} | 15 +--------------
 2 files changed, 2 insertions(+), 15 deletions(-)
 rename meta/recipes-devtools/python/{python3-setuptools_80.9.0.bb => python3-setuptools_82.0.0.bb} (67%)

Comments

Marcel Ziswiler March 13, 2026, 9:25 a.m. UTC | #1
Hi Hongxu Jia

On Wed, 2026-03-04 at 12:54 +0800, Hongxu Jia wrote:
> Remove python3-pkg-resources
> 
> History v82.0.0 [1]:
> 
> Deprecations and Removals
> - pkg_resources has been removed from Setuptools. Most common uses of pkg_resources have
>   been superseded by the importlib.resources and importlib.metadata projects. Projects
>   and environments relying on pkg_resources for namespace packages or other behavior
>   should depend on older versions of setuptools. (#3085)
> 
> [1] https://setuptools.pypa.io/en/stable/history.html#v82-0-0
> 
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>

[snip]

Unfortunately, this seems to break all my meta-riscv machine builds:

...
| gcc -shared -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
native/3.2.4/recipe-sysroot-native/usr/lib -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-
link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-
native/usr/lib -Wl,-rpath-link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
native/3.2.4/recipe-sysroot-native/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-
yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-
shlib-undefined -Wl,--dynamic-linker=/var/home/sumo/Sources/riscv-yocto/build/tmp/sysroots-uninative/x86_64-
linux/lib/ld-linux-x86-64.so.2 -pthread -isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/include -O2 -pipe -
isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-
sysroot-native/usr/include build/temp.linux-x86_64-cpython-314/var/home/sumo/Sources/riscv-
yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/sources/cython-3.2.4/Cython/Compiler/Code.o -
L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-
native/usr/lib -o build/lib.linux-x86_64-cpython-314/Cython/Compiler/Code.cpython-314-x86_64-linux-gnu.so
| running bdist_wheel
| error: invalid command 'egg_info'
| WARNING: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
native/3.2.4/temp/run.do_compile.2101018:159 exit 1 from 'nativepython3 setup.py --verbose build -j 48
bdist_wheel --dist-dir /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
native/3.2.4/dist'
| WARNING: Backtrace (BB generated script):
|       #1: setuptools3_do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-
cython-native/3.2.4/temp/run.do_compile.2101018, line 159
|       #2: do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
native/3.2.4/temp/run.do_compile.2101018, line 149
|       #3: main, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
native/3.2.4/temp/run.do_compile.2101018, line 166
ERROR: Task (virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
devtools/python/python3-cython_3.2.4.bb:do_compile) failed with exit code '1'
...
Summary: 7 tasks failed:
  virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
devtools/python/python3-pyelftools_0.32.bb:do_compile
    log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-pyelftools-
native/0.32/temp/log.do_compile.2101167
  virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
devtools/python/python3-markupsafe_3.0.3.bb:do_compile
    log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-markupsafe-
native/3.0.3/temp/log.do_compile.2100841
  virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
devtools/python/python3-calver_2025.10.20.bb:do_compile
    log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-calver-
native/2025.10.20/temp/log.do_compile.2101147
  virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
devtools/meson/meson_1.10.1.bb:do_compile
    log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/meson-
native/1.10.1/temp/log.do_compile.2100900
  virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
devtools/python/python3-setuptools-scm_9.2.2.bb:do_compile
    log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-setuptools-scm-
native/9.2.2/temp/log.do_compile.2100993
  virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
devtools/python/python3-mako_1.3.10.bb:do_compile
    log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-mako-
native/1.3.10/temp/log.do_compile.2101162
  virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
devtools/python/python3-cython_3.2.4.bb:do_compile
    log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
native/3.2.4/temp/log.do_compile.2101018
Summary: There were 16 WARNING messages.
Summary: There were 7 ERROR messages, returning a non-zero exit code.

If I revert commit ab6b2bf7b555d3516abea6255b800fe6f9673a69 all builds fine again.

Any ideas?

Thanks!

Cheers

Marcel
Martin Jansa March 13, 2026, 9:43 a.m. UTC | #2
Don't you have meta-tensorflow included in your build and set it to
use python-3.13 instead of 3.14 as in:
https://git.yoctoproject.org/meta-tensorflow/commit/?id=f1b44771445970cb389a50b5885356c987b8931a

3.13 is not compatible with new setuptools, I have seen the same
errors then removed meta-tensorflow and it built fine again.

Hopefully https://lists.yoctoproject.org/g/yocto-patches/message/3323
will be resolved soon.

Regards,


On Fri, Mar 13, 2026 at 10:25 AM Marcel Ziswiler via
lists.openembedded.org <marcel=ziswiler.com@lists.openembedded.org>
wrote:
>
> Hi Hongxu Jia
>
> On Wed, 2026-03-04 at 12:54 +0800, Hongxu Jia wrote:
> > Remove python3-pkg-resources
> >
> > History v82.0.0 [1]:
> >
> > Deprecations and Removals
> > - pkg_resources has been removed from Setuptools. Most common uses of pkg_resources have
> >   been superseded by the importlib.resources and importlib.metadata projects. Projects
> >   and environments relying on pkg_resources for namespace packages or other behavior
> >   should depend on older versions of setuptools. (#3085)
> >
> > [1] https://setuptools.pypa.io/en/stable/history.html#v82-0-0
> >
> > Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
>
> [snip]
>
> Unfortunately, this seems to break all my meta-riscv machine builds:
>
> ...
> | gcc -shared -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/recipe-sysroot-native/usr/lib -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
> linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-
> link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-
> native/usr/lib -Wl,-rpath-link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/recipe-sysroot-native/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
> linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-
> yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-
> shlib-undefined -Wl,--dynamic-linker=/var/home/sumo/Sources/riscv-yocto/build/tmp/sysroots-uninative/x86_64-
> linux/lib/ld-linux-x86-64.so.2 -pthread -isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
> linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/include -O2 -pipe -
> isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-
> sysroot-native/usr/include build/temp.linux-x86_64-cpython-314/var/home/sumo/Sources/riscv-
> yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/sources/cython-3.2.4/Cython/Compiler/Code.o -
> L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-
> native/usr/lib -o build/lib.linux-x86_64-cpython-314/Cython/Compiler/Code.cpython-314-x86_64-linux-gnu.so
> | running bdist_wheel
> | error: invalid command 'egg_info'
> | WARNING: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/temp/run.do_compile.2101018:159 exit 1 from 'nativepython3 setup.py --verbose build -j 48
> bdist_wheel --dist-dir /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/dist'
> | WARNING: Backtrace (BB generated script):
> |       #1: setuptools3_do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-
> cython-native/3.2.4/temp/run.do_compile.2101018, line 159
> |       #2: do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/temp/run.do_compile.2101018, line 149
> |       #3: main, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/temp/run.do_compile.2101018, line 166
> ERROR: Task (virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-cython_3.2.4.bb:do_compile) failed with exit code '1'
> ...
> Summary: 7 tasks failed:
>   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-pyelftools_0.32.bb:do_compile
>     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-pyelftools-
> native/0.32/temp/log.do_compile.2101167
>   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-markupsafe_3.0.3.bb:do_compile
>     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-markupsafe-
> native/3.0.3/temp/log.do_compile.2100841
>   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-calver_2025.10.20.bb:do_compile
>     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-calver-
> native/2025.10.20/temp/log.do_compile.2101147
>   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/meson/meson_1.10.1.bb:do_compile
>     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/meson-
> native/1.10.1/temp/log.do_compile.2100900
>   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-setuptools-scm_9.2.2.bb:do_compile
>     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-setuptools-scm-
> native/9.2.2/temp/log.do_compile.2100993
>   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-mako_1.3.10.bb:do_compile
>     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-mako-
> native/1.3.10/temp/log.do_compile.2101162
>   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-cython_3.2.4.bb:do_compile
>     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/temp/log.do_compile.2101018
> Summary: There were 16 WARNING messages.
> Summary: There were 7 ERROR messages, returning a non-zero exit code.
>
> If I revert commit ab6b2bf7b555d3516abea6255b800fe6f9673a69 all builds fine again.
>
> Any ideas?
>
> Thanks!
>
> Cheers
>
> Marcel
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#233031): https://lists.openembedded.org/g/openembedded-core/message/233031
> Mute This Topic: https://lists.openembedded.org/mt/118127779/3617156
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Marcel Ziswiler March 13, 2026, 10:29 a.m. UTC | #3
Hi Martin

On Fri, 2026-03-13 at 10:43 +0100, Martin Jansa wrote:
> Don't you have meta-tensorflow included in your build and set it to
> use python-3.13 instead of 3.14 as in:
> https://git.yoctoproject.org/meta-tensorflow/commit/?id=f1b44771445970cb389a50b5885356c987b8931a

No, I don't think so.

The only layers I have enabled are:

openembedded-core/meta
meta-openembedded/meta-oe
meta-riscv
meta-poky
meta-python
meta-multimedia
meta-networking

Cheers

Marcel

> 3.13 is not compatible with new setuptools, I have seen the same
> errors then removed meta-tensorflow and it built fine again.
> 
> Hopefully https://lists.yoctoproject.org/g/yocto-patches/message/3323
> will be resolved soon.
> 
> Regards,
> 
> 
> On Fri, Mar 13, 2026 at 10:25 AM Marcel Ziswiler via
> lists.openembedded.org <marcel=ziswiler.com@lists.openembedded.org>
> wrote:
> > 
> > Hi Hongxu Jia
> > 
> > On Wed, 2026-03-04 at 12:54 +0800, Hongxu Jia wrote:
> > > Remove python3-pkg-resources
> > > 
> > > History v82.0.0 [1]:
> > > 
> > > Deprecations and Removals
> > > - pkg_resources has been removed from Setuptools. Most common uses of pkg_resources have
> > >   been superseded by the importlib.resources and importlib.metadata projects. Projects
> > >   and environments relying on pkg_resources for namespace packages or other behavior
> > >   should depend on older versions of setuptools. (#3085)
> > > 
> > > [1] https://setuptools.pypa.io/en/stable/history.html#v82-0-0
> > > 
> > > Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> > 
> > [snip]
> > 
> > Unfortunately, this seems to break all my meta-riscv machine builds:
> > 
> > ...
> > > gcc -shared -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> > native/3.2.4/recipe-sysroot-native/usr/lib -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
> > linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-
> > link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-
> > sysroot-
> > native/usr/lib -Wl,-rpath-link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-
> > cython-
> > native/3.2.4/recipe-sysroot-native/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
> > linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-
> > yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,-O1 -Wl,--
> > allow-
> > shlib-undefined -Wl,--dynamic-linker=/var/home/sumo/Sources/riscv-yocto/build/tmp/sysroots-
> > uninative/x86_64-
> > linux/lib/ld-linux-x86-64.so.2 -pthread -isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
> > linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/include -O2 -pipe -
> > isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-
> > sysroot-native/usr/include build/temp.linux-x86_64-cpython-314/var/home/sumo/Sources/riscv-
> > yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/sources/cython-3.2.4/Cython/Compiler/Code.o -
> > L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-
> > native/usr/lib -o build/lib.linux-x86_64-cpython-314/Cython/Compiler/Code.cpython-314-x86_64-linux-gnu.so
> > > running bdist_wheel
> > > error: invalid command 'egg_info'
> > > WARNING: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> > native/3.2.4/temp/run.do_compile.2101018:159 exit 1 from 'nativepython3 setup.py --verbose build -j 48
> > bdist_wheel --dist-dir /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> > native/3.2.4/dist'
> > > WARNING: Backtrace (BB generated script):
> > >       #1: setuptools3_do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-
> > cython-native/3.2.4/temp/run.do_compile.2101018, line 159
> > >       #2: do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> > native/3.2.4/temp/run.do_compile.2101018, line 149
> > >       #3: main, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> > native/3.2.4/temp/run.do_compile.2101018, line 166
> > ERROR: Task (virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> > devtools/python/python3-cython_3.2.4.bb:do_compile) failed with exit code '1'
> > ...
> > Summary: 7 tasks failed:
> >   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> > devtools/python/python3-pyelftools_0.32.bb:do_compile
> >     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-pyelftools-
> > native/0.32/temp/log.do_compile.2101167
> >   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> > devtools/python/python3-markupsafe_3.0.3.bb:do_compile
> >     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-markupsafe-
> > native/3.0.3/temp/log.do_compile.2100841
> >   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> > devtools/python/python3-calver_2025.10.20.bb:do_compile
> >     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-calver-
> > native/2025.10.20/temp/log.do_compile.2101147
> >   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> > devtools/meson/meson_1.10.1.bb:do_compile
> >     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/meson-
> > native/1.10.1/temp/log.do_compile.2100900
> >   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> > devtools/python/python3-setuptools-scm_9.2.2.bb:do_compile
> >     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-setuptools-scm-
> > native/9.2.2/temp/log.do_compile.2100993
> >   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> > devtools/python/python3-mako_1.3.10.bb:do_compile
> >     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-mako-
> > native/1.3.10/temp/log.do_compile.2101162
> >   virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> > devtools/python/python3-cython_3.2.4.bb:do_compile
> >     log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> > native/3.2.4/temp/log.do_compile.2101018
> > Summary: There were 16 WARNING messages.
> > Summary: There were 7 ERROR messages, returning a non-zero exit code.
> > 
> > If I revert commit ab6b2bf7b555d3516abea6255b800fe6f9673a69 all builds fine again.
> > 
> > Any ideas?
> > 
> > Thanks!
> > 
> > Cheers
> > 
> > Marcel
> > 
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#233031): https://lists.openembedded.org/g/openembedded-core/message/233031
> > Mute This Topic: https://lists.openembedded.org/mt/118127779/3617156
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [martin.jansa@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
Hongxu Jia March 16, 2026, 2:24 a.m. UTC | #4
On 3/13/26 17:43, Martin Jansa wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> Don't you have meta-tensorflow included in your build and set it to
> use python-3.13 instead of 3.14 as in:
> https://git.yoctoproject.org/meta-tensorflow/commit/?id=f1b44771445970cb389a50b5885356c987b8931a
>
> 3.13 is not compatible with new setuptools, I have seen the same
> errors then removed meta-tensorflow and it built fine again.
>
> Hopefully https://lists.yoctoproject.org/g/yocto-patches/message/3323
> will be resolved soon.

I am working to upgrade meta-tensorflow with python 3.14

many failures to fix, coming soon

//Hongxu

> Regards,
>
>
> On Fri, Mar 13, 2026 at 10:25 AM Marcel Ziswiler via
> lists.openembedded.org <marcel=ziswiler.com@lists.openembedded.org>
> wrote:
>> Hi Hongxu Jia
>>
>> On Wed, 2026-03-04 at 12:54 +0800, Hongxu Jia wrote:
>>> Remove python3-pkg-resources
>>>
>>> History v82.0.0 [1]:
>>>
>>> Deprecations and Removals
>>> - pkg_resources has been removed from Setuptools. Most common uses of pkg_resources have
>>>    been superseded by the importlib.resources and importlib.metadata projects. Projects
>>>    and environments relying on pkg_resources for namespace packages or other behavior
>>>    should depend on older versions of setuptools. (#3085)
>>>
>>> [1] https://setuptools.pypa.io/en/stable/history.html#v82-0-0
>>>
>>> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
>> [snip]
>>
>> Unfortunately, this seems to break all my meta-riscv machine builds:
>>
>> ...
>> | gcc -shared -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
>> native/3.2.4/recipe-sysroot-native/usr/lib -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
>> linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-
>> link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-
>> native/usr/lib -Wl,-rpath-link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
>> native/3.2.4/recipe-sysroot-native/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
>> linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-
>> yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-
>> shlib-undefined -Wl,--dynamic-linker=/var/home/sumo/Sources/riscv-yocto/build/tmp/sysroots-uninative/x86_64-
>> linux/lib/ld-linux-x86-64.so.2 -pthread -isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
>> linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/include -O2 -pipe -
>> isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-
>> sysroot-native/usr/include build/temp.linux-x86_64-cpython-314/var/home/sumo/Sources/riscv-
>> yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/sources/cython-3.2.4/Cython/Compiler/Code.o -
>> L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-
>> native/usr/lib -o build/lib.linux-x86_64-cpython-314/Cython/Compiler/Code.cpython-314-x86_64-linux-gnu.so
>> | running bdist_wheel
>> | error: invalid command 'egg_info'
>> | WARNING: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
>> native/3.2.4/temp/run.do_compile.2101018:159 exit 1 from 'nativepython3 setup.py --verbose build -j 48
>> bdist_wheel --dist-dir /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
>> native/3.2.4/dist'
>> | WARNING: Backtrace (BB generated script):
>> |       #1: setuptools3_do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-
>> cython-native/3.2.4/temp/run.do_compile.2101018, line 159
>> |       #2: do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
>> native/3.2.4/temp/run.do_compile.2101018, line 149
>> |       #3: main, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
>> native/3.2.4/temp/run.do_compile.2101018, line 166
>> ERROR: Task (virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
>> devtools/python/python3-cython_3.2.4.bb:do_compile) failed with exit code '1'
>> ...
>> Summary: 7 tasks failed:
>>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
>> devtools/python/python3-pyelftools_0.32.bb:do_compile
>>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-pyelftools-
>> native/0.32/temp/log.do_compile.2101167
>>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
>> devtools/python/python3-markupsafe_3.0.3.bb:do_compile
>>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-markupsafe-
>> native/3.0.3/temp/log.do_compile.2100841
>>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
>> devtools/python/python3-calver_2025.10.20.bb:do_compile
>>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-calver-
>> native/2025.10.20/temp/log.do_compile.2101147
>>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
>> devtools/meson/meson_1.10.1.bb:do_compile
>>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/meson-
>> native/1.10.1/temp/log.do_compile.2100900
>>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
>> devtools/python/python3-setuptools-scm_9.2.2.bb:do_compile
>>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-setuptools-scm-
>> native/9.2.2/temp/log.do_compile.2100993
>>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
>> devtools/python/python3-mako_1.3.10.bb:do_compile
>>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-mako-
>> native/1.3.10/temp/log.do_compile.2101162
>>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
>> devtools/python/python3-cython_3.2.4.bb:do_compile
>>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
>> native/3.2.4/temp/log.do_compile.2101018
>> Summary: There were 16 WARNING messages.
>> Summary: There were 7 ERROR messages, returning a non-zero exit code.
>>
>> If I revert commit ab6b2bf7b555d3516abea6255b800fe6f9673a69 all builds fine again.
>>
>> Any ideas?
>>
>> Thanks!
>>
>> Cheers
>>
>> Marcel
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#233031): https://lists.openembedded.org/g/openembedded-core/message/233031
>> Mute This Topic: https://lists.openembedded.org/mt/118127779/3617156
>> Group Owner: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [martin.jansa@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
Hongxu Jia March 16, 2026, 4:34 a.m. UTC | #5
On 3/13/26 17:25, Marcel Ziswiler wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> Hi Hongxu Jia
>
> On Wed, 2026-03-04 at 12:54 +0800, Hongxu Jia wrote:
>> Remove python3-pkg-resources
>>
>> History v82.0.0 [1]:
>>
>> Deprecations and Removals
>> - pkg_resources has been removed from Setuptools. Most common uses of pkg_resources have
>>    been superseded by the importlib.resources and importlib.metadata projects. Projects
>>    and environments relying on pkg_resources for namespace packages or other behavior
>>    should depend on older versions of setuptools. (#3085)
>>
>> [1]https://setuptools.pypa.io/en/stable/history.html#v82-0-0
>>
>> Signed-off-by: Hongxu Jia<hongxu.jia@windriver.com>
> [snip]
>
> Unfortunately, this seems to break all my meta-riscv machine builds:
>
> ...
> | gcc -shared -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/recipe-sysroot-native/usr/lib -L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
> linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-
> link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-
> native/usr/lib -Wl,-rpath-link,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/recipe-sysroot-native/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
> linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/lib -Wl,-rpath,/var/home/sumo/Sources/riscv-
> yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-
> shlib-undefined -Wl,--dynamic-linker=/var/home/sumo/Sources/riscv-yocto/build/tmp/sysroots-uninative/x86_64-
> linux/lib/ld-linux-x86-64.so.2 -pthread -isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-
> linux/python3-cython-native/3.2.4/recipe-sysroot-native/usr/include -O2 -pipe -
> isystem/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-
> sysroot-native/usr/include build/temp.linux-x86_64-cpython-314/var/home/sumo/Sources/riscv-
> yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/sources/cython-3.2.4/Cython/Compiler/Code.o -
> L/var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-native/3.2.4/recipe-sysroot-
> native/usr/lib -o build/lib.linux-x86_64-cpython-314/Cython/Compiler/Code.cpython-314-x86_64-linux-gnu.so
> | running bdist_wheel
> | error: invalid command 'egg_info'
> | WARNING: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/temp/run.do_compile.2101018:159 exit 1 from 'nativepython3 setup.py --verbose build -j 48
> bdist_wheel --dist-dir /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/dist'
> | WARNING: Backtrace (BB generated script):
> |       #1: setuptools3_do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-
> cython-native/3.2.4/temp/run.do_compile.2101018, line 159
> |       #2: do_compile, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/temp/run.do_compile.2101018, line 149
> |       #3: main, /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/temp/run.do_compile.2101018, line 166
> ERROR: Task (virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-cython_3.2.4.bb:do_compile) failed with exit code '1'
> ...
> Summary: 7 tasks failed:
>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-pyelftools_0.32.bb:do_compile
>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-pyelftools-
> native/0.32/temp/log.do_compile.2101167
>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-markupsafe_3.0.3.bb:do_compile
>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-markupsafe-
> native/3.0.3/temp/log.do_compile.2100841
>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-calver_2025.10.20.bb:do_compile
>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-calver-
> native/2025.10.20/temp/log.do_compile.2101147
>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/meson/meson_1.10.1.bb:do_compile
>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/meson-
> native/1.10.1/temp/log.do_compile.2100900
>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-setuptools-scm_9.2.2.bb:do_compile
>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-setuptools-scm-
> native/9.2.2/temp/log.do_compile.2100993
>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-mako_1.3.10.bb:do_compile
>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-mako-
> native/1.3.10/temp/log.do_compile.2101162
>    virtual:native:/var/home/sumo/Sources/riscv-yocto/layers/openembedded-core/meta/recipes-
> devtools/python/python3-cython_3.2.4.bb:do_compile
>      log: /var/home/sumo/Sources/riscv-yocto/build/tmp/work/x86_64-linux/python3-cython-
> native/3.2.4/temp/log.do_compile.2101018
> Summary: There were 16 WARNING messages.
> Summary: There were 7 ERROR messages, returning a non-zero exit code.
>
> If I revert commit ab6b2bf7b555d3516abea6255b800fe6f9673a69 all builds fine again.
>
> Any ideas?

The recipe python3-cython is in oe-core, would you please apply [1] to 
recipe python3-cython and retry?

[1] 
https://github.com/cython/cython/commit/fd847477a47855f9c0d036f35c8865196d5267cc 


//Hongxu

> Thanks!
>
> Cheers
>
> Marcel
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-setuptools/0001-_distutils-sysconfig.py-make-it-possible-to-substite.patch b/meta/recipes-devtools/python/python3-setuptools/0001-_distutils-sysconfig.py-make-it-possible-to-substite.patch
index 39153883b0..0fc5e3f134 100644
--- a/meta/recipes-devtools/python/python3-setuptools/0001-_distutils-sysconfig.py-make-it-possible-to-substite.patch
+++ b/meta/recipes-devtools/python/python3-setuptools/0001-_distutils-sysconfig.py-make-it-possible-to-substite.patch
@@ -1,4 +1,4 @@ 
-From e2eab8c254f16c461de25123f6859b8a18db5cd8 Mon Sep 17 00:00:00 2001
+From cb37237fd60689ccf999689ff60acabe8e1ec1de Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin <alex@linutronix.de>
 Date: Wed, 11 May 2022 21:41:14 +0200
 Subject: [PATCH] _distutils/sysconfig.py: make it possible to substite the
diff --git a/meta/recipes-devtools/python/python3-setuptools_80.9.0.bb b/meta/recipes-devtools/python/python3-setuptools_82.0.0.bb
similarity index 67%
rename from meta/recipes-devtools/python/python3-setuptools_80.9.0.bb
rename to meta/recipes-devtools/python/python3-setuptools_82.0.0.bb
index 533d8ce3d4..40687ea7a3 100644
--- a/meta/recipes-devtools/python/python3-setuptools_80.9.0.bb
+++ b/meta/recipes-devtools/python/python3-setuptools_82.0.0.bb
@@ -11,7 +11,7 @@  CVE_PRODUCT = "python3-setuptools python:setuptools"
 SRC_URI += " \
             file://0001-_distutils-sysconfig.py-make-it-possible-to-substite.patch"
 
-SRC_URI[sha256sum] = "f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c"
+SRC_URI[sha256sum] = "22e0a2d69474c6ae4feb01951cb69d515ed23728cf96d05513d36e42b62b37cb"
 
 DEPENDS += "python3"
 
@@ -25,7 +25,6 @@  RDEPENDS:${PN} = "\
     python3-netserver \
     python3-numbers \
     python3-pickle \
-    python3-pkg-resources \
     python3-pkgutil \
     python3-plistlib \
     python3-shell \
@@ -38,18 +37,6 @@  RDEPENDS:${PN} = "\
 
 BBCLASSEXTEND = "native nativesdk"
 
-# The pkg-resources module can be used by itself, without the package downloader
-# and easy_install. Ship it in a separate package so that it can be used by
-# minimal distributions.
-PACKAGES =+ "python3-pkg-resources "
-FILES:python3-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*"
-RDEPENDS:python3-pkg-resources = "\
-    python3-compression \
-    python3-email \
-    python3-plistlib \
-    python3-pprint \
-"
-
 # This used to use the bootstrap install which didn't compile. Until we bump the
 # tmpdir version we can't compile the native otherwise the sysroot unpack fails
 INSTALL_WHEEL_COMPILE_BYTECODE:class-native = "--no-compile-bytecode"