diff mbox series

[meta-lts-mixins,kirkstone/rust,v2,1/1] python3-strict-rfc3339: fix invalid command 'bdist_wheel'

Message ID 20250626055129.2457115-1-soumya.sambu@windriver.com
State New
Headers show
Series [meta-lts-mixins,kirkstone/rust,v2,1/1] python3-strict-rfc3339: fix invalid command 'bdist_wheel' | expand

Commit Message

ssambu June 26, 2025, 5:51 a.m. UTC
From: Soumya Sambu <soumya.sambu@windriver.com>

With mixins setuptools, python3-strict-rfc3339 fails to compile with error:
    error: invalid command 'bdist_wheel'
    ERROR: 'python3 setup.py bdist_wheel ' execution failed.

Switching setup import from setuptools._distutils.core to setuptools fixed the issue.

Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
---
 ...setup-from-setuptools-instead-of-dis.patch | 25 +++++++++++++++++++
 .../python/python3-strict-rfc3339_%.bbappend  |  4 +++
 2 files changed, 29 insertions(+)
 create mode 100644 dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339/0001-setup.py-import-setup-from-setuptools-instead-of-dis.patch
 create mode 100644 dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339_%.bbappend
diff mbox series

Patch

diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339/0001-setup.py-import-setup-from-setuptools-instead-of-dis.patch b/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339/0001-setup.py-import-setup-from-setuptools-instead-of-dis.patch
new file mode 100644
index 0000000..b0dc119
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339/0001-setup.py-import-setup-from-setuptools-instead-of-dis.patch
@@ -0,0 +1,25 @@ 
+From 1d583ecd2d6376252fcced66068a2482fec0dfbf Mon Sep 17 00:00:00 2001
+From: Soumya Sambu <soumya.sambu@windriver.com>
+Date: Wed, 25 Jun 2025 17:26:35 +0530
+Subject: [PATCH] setup.py: import setup from setuptools instead of distutils
+
+Upstream-Status: Pending [upstream appears unmaintained]
+
+Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index a49fb8e..5279707 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,5 +1,5 @@
+ import os.path
+-from setuptools._distutils.core import setup
++from setuptools import setup
+
+ readme_file = os.path.join(os.path.dirname(__file__), 'README.md')
+ readme = open(readme_file).read()
+--
+2.40.0
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339_%.bbappend b/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339_%.bbappend
new file mode 100644
index 0000000..d694d20
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339_%.bbappend
@@ -0,0 +1,4 @@ 
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "\
+            file://0001-setup.py-import-setup-from-setuptools-instead-of-dis.patch"