Skip to contentSkip to conversation

python3-strict-rfc3339: fix invalid command 'bdist_wheel'

PATCH New ssambu 1 participant 1 message Jun 27, 2025

lore
Share & tools
lore

ssambu

author
#0 lore raw

PATCH v3 1/1 python3-strict-rfc3339: fix invalid command 'bdist_wheel'

From: Soumya Sambu <[email protected]>

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.

---
 ...setup-from-setuptools-instead-of-dis.patch | 26 +++++++++++++++++++
 .../python/python3-strict-rfc3339_%.bbappend  |  4 +++
 2 files changed, 30 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
dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339/0001-setup.py-import-setup-from-setuptools-instead-of-dis.patch new file +26 -0
new file mode 100644
index 0000000..11ca34d
@@ -0,0 +1,26 @@
+From 1d583ecd2d6376252fcced66068a2482fec0dfbf Mon Sep 17 00:00:00 2001
+From: Soumya Sambu <[email protected]>
+Date: Wed, 25 Jun 2025 17:26:35 +0530
+Subject: [PATCH] setup.py: import setup from setuptools instead of distutils
+
+Upstream-Status: Inactive-Upstream [lastcommit: 2016-04-24]
+last commit - https://github.com/danielrichman/strict-rfc3339/commit/abbccd3645d0a34dcbaba55436485951a3b3309c
+
+Signed-off-by: Soumya Sambu <[email protected]>
+---
+ 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
dynamic-layers/openembedded-layer/recipes-devtools/python/python3-strict-rfc3339_%.bbappend new file +4 -0
new file mode 100644
index 0000000..d694d20
@@ -0,0 +1,4 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "\
+            file://0001-setup.py-import-setup-from-setuptools-instead-of-dis.patch"
Signature · 1 line
2.40.0