[Buildroot] [PATCH 1/1] package/python-setuptools: bump to version 67.8.0

James Hilliard james.hilliard1 at gmail.com
Fri Jun 23 06:39:27 UTC 2023


On Wed, Jun 21, 2023 at 7:56 AM Romain Naour <romain.naour at smile.fr> wrote:
>
> Hello James,
>
> Le 21/06/2023 à 11:57, Romain Naour a écrit :
> > Hello James, Arnout, All,
> >
> > Le 18/06/2023 à 15:02, Arnout Vandecappelle via buildroot a écrit :
> >>
> >>
> >> On 05/06/2023 09:08, James Hilliard wrote:
> >>> License hash changed due to name removal:
> >>> https://github.com/pypa/setuptools/commit/5957d58266e479f124b31f30e4322e798fdf386b
> >
> > Since this commit, one of the python test fail (TestPythonPy3Gpiozero [1]):
> >
> >   File
> > "/builds/buildroot.org/buildroot/test-output/TestPythonPy3Gpiozero/host/lib/python3.11/site-packages/pkg_resources/__init__.py",
> > line 868, in _resolve_dist
> >     raise DistributionNotFound(req, requirers)
> > pkg_resources.DistributionNotFound: The 'colorzero' distribution was not found
> > and is required by the application
> >
> > But if you look closer in the build log, you will notice new setuptool warning:
> >
> > [...]sysroot/usr/lib/python3.11/distutils/cmd.py:62:
> > SetuptoolsDeprecationWarning: setup.py install is deprecated.
> > !!
> > ********************************************************************************
> >         Please avoid running ``setup.py`` directly.
> >         Instead, use pypa/build, pypa/installer, pypa/build or
> >         other standards-based tools.
> >
> >         See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
> > for details.
> >
> > ********************************************************************************
> >
> > So, it means that the package infrastructure for python use a deprecated install
> > method. I'm not sure why this issue appear only with python-piozero but it seems
> > that we need to update the python infrastructure.
> >
> > Can you have a look?
> >
> > [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/4505977906
> > [2]
> > https://gitlab.com/buildroot.org/buildroot/-/blob/2023.05.x/package/pkg-python.mk#L195
>
> Switching to setup.cfg seems to workaround this specific issue:

Strange, having a setup.py based installation is not being deprecated, although
direct invocation of setup.py will be at some point. From my
understanding pep517
build frontends will invoke a setup.py if found for projects without a
pyproject.toml file.

>
> http://patchwork.ozlabs.org/project/buildroot/patch/20230621134518.304689-1-romain.naour@smile.fr/
>
> But we have still deprecation warnings.
>
> Thoughts?

Looks like we may now be able to migrate setuptools to pep517 soon, I've sent a
patch adding wheel which will be needed for that:
https://patchwork.ozlabs.org/project/buildroot/patch/20230623063344.46379-1-james.hilliard1@gmail.com/

>
> Best regards,
> Romain
>
>
> >
> > Best regards,
> > Romain
> >
> >>>
> >>> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> >>
> >>  Applied to master, thanks.
> >>
> >>  Regards,
> >>  Arnout
> >>
> >>> ---
> >>>   package/python-setuptools/python-setuptools.hash | 6 +++---
> >>>   package/python-setuptools/python-setuptools.mk   | 4 ++--
> >>>   2 files changed, 5 insertions(+), 5 deletions(-)
> >>>
> >>> diff --git a/package/python-setuptools/python-setuptools.hash
> >>> b/package/python-setuptools/python-setuptools.hash
> >>> index 76ad1ba1ce..be13063728 100644
> >>> --- a/package/python-setuptools/python-setuptools.hash
> >>> +++ b/package/python-setuptools/python-setuptools.hash
> >>> @@ -1,4 +1,4 @@
> >>>   # From https://pypi.org/pypi/setuptools/json
> >>> -md5  1fd8bd04b0bed95ad6c81f03b1c080bc  setuptools-65.6.3.tar.gz
> >>> -sha256  a7620757bf984b58deaf32fc8a4577a9bbc0850cf92c20e1ce41c38c19e5fb75
> >>> setuptools-65.6.3.tar.gz
> >>> -sha256  db3f0246b1f9278f15845b99fec478b8b506eb76487993722f8c6e254285faf8
> >>> LICENSE
> >>> +md5  628ab1ae7d14185e5e536740ea31b5ce  setuptools-67.8.0.tar.gz
> >>> +sha256  62642358adc77ffa87233bc4d2354c4b2682d214048f500964dbe760ccedf102
> >>> setuptools-67.8.0.tar.gz
> >>> +sha256  86da0f01aeae46348a3c3d465195dc1ceccde79f79e87769a64b8da04b2a4741
> >>> LICENSE
> >>> diff --git a/package/python-setuptools/python-setuptools.mk
> >>> b/package/python-setuptools/python-setuptools.mk
> >>> index 226ef2b479..6d10172cdc 100644
> >>> --- a/package/python-setuptools/python-setuptools.mk
> >>> +++ b/package/python-setuptools/python-setuptools.mk
> >>> @@ -4,9 +4,9 @@
> >>>   #
> >>>
> >>> ################################################################################
> >>>   -PYTHON_SETUPTOOLS_VERSION = 65.6.3
> >>> +PYTHON_SETUPTOOLS_VERSION = 67.8.0
> >>>   PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON_SETUPTOOLS_VERSION).tar.gz
> >>> -PYTHON_SETUPTOOLS_SITE =
> >>> https://files.pythonhosted.org/packages/b6/21/cb9a8d0b2c8597c83fce8e9c02884bce3d4951e41e807fc35791c6b23d9a
> >>> +PYTHON_SETUPTOOLS_SITE =
> >>> https://files.pythonhosted.org/packages/03/20/630783571e76e5fa5f3e9f29398ca3ace377207b8196b54e0ffdf09f12c1
> >>>   PYTHON_SETUPTOOLS_LICENSE = MIT
> >>>   PYTHON_SETUPTOOLS_LICENSE_FILES = LICENSE
> >>>   PYTHON_SETUPTOOLS_CPE_ID_VENDOR = python
> >> _______________________________________________
> >> buildroot mailing list
> >> buildroot at buildroot.org
> >> https://lists.buildroot.org/mailman/listinfo/buildroot
> >
>



More information about the buildroot mailing list