($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: "Maohui Lei (Fujitsu)" <leimaohui@fujitsu.com>
To: "yocto@lists.yoctoproject.org" <yocto@lists.yoctoproject.org>,
	"patrick.vogelaar@belden.com" <patrick.vogelaar@belden.com>
Subject: RE: [yocto] [PATCH ][meta-spdxscanner] python3-patch: fix an error in kirkstone
Date: Wed, 6 Mar 2024 03:05:20 +0000	[thread overview]
Message-ID: <TY3PR01MB110562189725A2F5553B99FCDA0212@TY3PR01MB11056.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <20240203-fix-build-error-in-kirkstone-v1-1-fc36c4870de5@belden.com>

Hi,

Thank you for your patch. Merged.

Lei

> -----Original Message-----
> From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On Behalf
> Of Patrick Vogelaar via B4 Relay via lists.yoctoproject.org
> Sent: Sunday, February 4, 2024 6:34 AM
> To: yocto@lists.yoctoproject.org; Lei, Maohui
> <leimaohui@fujitsu.com>
> Cc: Patrick Vogelaar <patrick.vogelaar@belden.com>
> Subject: [yocto] [PATCH ][meta-spdxscanner] python3-patch: fix an error in
> kirkstone
> 
> From: Patrick Vogelaar <patrick.vogelaar@belden.com>
> 
> Patch python3-patch to use setuptools instead of distutils.
> This fixes a build error.
> 
> Signed-off-by: Patrick Vogelaar <patrick.vogelaar@belden.com>
> ---
>  .../0001-PATCH-setup.py-switch-to-setuptools.patch | 24
> ++++++++++++++++++++++
>  recipes-devtools/python/python3-patch_1.16.bb      |  4 +++-
>  2 files changed, 27 insertions(+), 1 deletion(-)
> 
> diff --git
> a/recipes-devtools/python/python3-patch/0001-PATCH-setup.py-switch-to-setu
> ptools.patch
> b/recipes-devtools/python/python3-patch/0001-PATCH-setup.py-switch-to-setu
> ptools.patch
> new file mode 100644
> index 0000000..9f9963f
> --- /dev/null
> +++ b/recipes-devtools/python/python3-patch/0001-PATCH-setup.py-switch-t
> +++ o-setuptools.patch
> @@ -0,0 +1,24 @@
> +From 314be675a933ed262687b25ea70f23d3454e3651 Mon Sep 17 00:00:00
> 2001
> +From: Patrick Vogelaar <patrick.vogelaar@belden.com>
> +Date: Thu, 1 Feb 2024 10:59:45 +0100
> +Subject: [PATCH] setup.py: switch to setuptools
> +
> +In Python 3.10, 'distutils' has been deprecated and is slated for
> +removal in Python 3.12.
> +
> +Switch from 'distutils.core' to 'setuptools'. This also allows for the
> +'wheel' binary archive format to be built with 'setup.py bdist_wheel'.
> +---
> + setup.py | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/setup.py b/setup.py
> +index 0307afd..1289f25 100644
> +--- a/setup.py
> ++++ b/setup.py
> +@@ -1,4 +1,4 @@
> +-from distutils.core import setup
> ++from setuptools import setup
> +
> + setup(
> +     name='patch',
> diff --git a/recipes-devtools/python/python3-patch_1.16.bb
> b/recipes-devtools/python/python3-patch_1.16.bb
> index 6627a2b..6e7ff15 100755
> --- a/recipes-devtools/python/python3-patch_1.16.bb
> +++ b/recipes-devtools/python/python3-patch_1.16.bb
> @@ -12,7 +12,9 @@ SRC_URI[sha256sum] =
> "c62073f356cff054c8ac24496f1a3d7cfa137835c31e9af39a9f5292fd
> 
>  inherit pypi
> 
> -SRC_URI = "${PYPI_SRC_URI};subdir=${PYPI_PACKAGE}-${PV}"
> +SRC_URI = "${PYPI_SRC_URI};subdir=${PYPI_PACKAGE}-${PV} \
> +           file://0001-PATCH-setup.py-switch-to-setuptools.patch \
> +           "
> 
>  inherit setuptools3
> 
> 
> ---
> base-commit: 8b07df1535fe1203b07fc87f8c6a1e34311e2a1d
> change-id: 20240203-fix-build-error-in-kirkstone-c9141e94731e
> 
> Best regards,
> --
> Patrick Vogelaar <patrick.vogelaar@belden.com>


      reply	other threads:[~2024-03-06  3:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-03 22:33 [PATCH ][meta-spdxscanner] python3-patch: fix an error in kirkstone Patrick Vogelaar via B4 Relay
2024-03-06  3:05 ` Maohui Lei (Fujitsu) [this message]

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=TY3PR01MB110562189725A2F5553B99FCDA0212@TY3PR01MB11056.jpnprd01.prod.outlook.com \
    --to=leimaohui@fujitsu.com \
    --cc=patrick.vogelaar@belden.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 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 read-only IMAP folder(s) and NNTP newsgroup(s).