python3-strict-rfc3339: fix invalid command 'bdist_wheel'
PATCH 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.
Signed-off-by Soumya Sambu <[email protected]>
--- ...setup-from-setuptools-instead-of-dis.patch | 23 +++++++++++++++++++ .../python/python3-strict-rfc3339_%.bbappend | 4 ++++ 2 files changed, 27 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 +23 -0
@@ -0,0 +1,23 @@ +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 + +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
@@ -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