Re: [OE-core] [PATCH 19/24] python3-setuptools: upgrade 72.1.0 -> 72.2.0

Trevor Gamblin
2024-08-28T20:31:26Z

On 2024-08-28 4:19 p.m., Alexander Kanavin wrote:
> On Wed, 28 Aug 2024 at 22:05, Trevor Gamblin via
> lists.openembedded.org <tgamblin=baylibre.com@lists.openembedded.org>
> wrote:
>> Even with that workaround, I see a more serious issue:
>>
>> |DEBUG: Executing shell function do_compile
>> |/home/tgamblin/workspace/yocto/poky/build/tmp/work/core2-64-poky-linux/python3-numpy/1.26.4/numpy-1.26.4/setup.py:60:
>> RuntimeWarning: NumPy 1.26.4 may not yet support Python 3.12.
>> | warnings.warn(
>> |Running from numpy source directory.
>> |/home/tgamblin/workspace/yocto/poky/build/tmp/work/core2-64-poky-linux/python3-numpy/1.26.4/numpy-1.26.4/setup.py:75:
>> DeprecationWarning:
>> |
>> | `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
>> | of the deprecation of `distutils` itself. It will be removed for
>> | Python >= 3.12. For older Python versions it will remain present.
>> | It is recommended to use `setuptools < 60.0` for those Python versions.
>> | For more details, see:
>> | https://numpy.org/devdocs/reference/distutils_status_migration.html
>> |
>> |
>> | import numpy.distutils.command.sdist
>> |Traceback (most recent call last):
>> | File
>> "/home/tgamblin/workspace/yocto/poky/build/tmp/work/core2-64-poky-linux/python3-numpy/1.26.4/numpy-1.26.4/setup.py",
>> line 483, in <module>
>> | from numpy.distutils.core import numpy_cmdclass as cmdclass
>> | File
>> "/home/tgamblin/workspace/yocto/poky/build/tmp/work/core2-64-poky-linux/python3-numpy/1.26.4/numpy-1.26.4/numpy/distutils/core.py",
>> line 24, in <module>
>> | from numpy.distutils.command import config, config_compiler, \
>> | File
>> "/home/tgamblin/workspace/yocto/poky/build/tmp/work/core2-64-poky-linux/python3-numpy/1.26.4/numpy-1.26.4/numpy/distutils/command/config.py",
>> line 19, in <module>
>> | from numpy.distutils.mingw32ccompiler import generate_manifest
>> | File
>> "/home/tgamblin/workspace/yocto/poky/build/tmp/work/core2-64-poky-linux/python3-numpy/1.26.4/numpy-1.26.4/numpy/distutils/mingw32ccompiler.py",
>> line 27, in <module>
>> | from distutils.msvccompiler import get_build_version as
>> get_build_msvc_version
>> |ModuleNotFoundError: No module named 'distutils.msvccompiler'
>> |ERROR: 'python3 setup.py bdist_wheel ' execution failed.
>>
>> I think we'll need to wait for the numpy upgrade to go in.
> I don't understand. This setuptools update did make it to master, and
> numpy 1.26.4 builds fine with it on the autobuilder and in my local
> builds.
Sorry, got my wires crossed. I'm trying setuptools 74.x, which I only
mentioned testing in IRC...
>
> Alex