@@ -70,6 +70,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-pytoml \
python3-pyyaml-include \
python3-pydbus \
+ python3-pyzstd \
python3-rapidjson \
python3-requests-file \
python3-requests-toolbelt \
new file mode 100644
@@ -0,0 +1,27 @@
+From e648bb2439cad0d2ce47875edc7944d0b446fdb4 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Wed, 9 Apr 2025 14:38:31 -0700
+Subject: [PATCH] Bump setuptools dependency from 74 to 79
+
+Upstream sticks to 0.74 since setuptools have dropped msvc9compiler
+support beyond that which is needed for python 3.9 on windows. We
+do not have this problem on Linux
+
+Upstream-Status: Inappropriate [OE-specific]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index dd885e4..9f273b3 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,6 +1,6 @@
+ [build-system]
+ # setuptools 64+ support --build-option
+ # setuptools 74+ drops distutils.msvc9compiler required for Python 3.9 under Windows
+-requires = ["setuptools>=64,<74"]
++requires = ["setuptools>=64,<79"]
+ backend-path = ["build_script"]
+ build-backend = "pyzstd_pep517"
@@ -8,9 +8,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e"
PYPI_PACKAGE = "pyzstd"
+SRC_URI += "file://0001-Bump-setuptools-dependency-from-74-to-79.patch"
SRC_URI[sha256sum] = "179c1a2ea1565abf09c5f2fd72f9ce7c54b2764cf7369e05c0bfd8f1f67f63d2"
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta ptest-python-pytest
# clang-16 with -flto segfaults on arm, therefore ignore flto for now
do_configure:append:arm:toolchain-clang() {
Add ptest support while here Signed-off-by: Khem Raj <raj.khem@gmail.com> --- .../ptest-packagelists-meta-python.inc | 1 + ...-setuptools-dependency-from-74-to-79.patch | 27 +++++++++++++++++++ .../python/python3-pyzstd_0.16.2.bb | 3 ++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-pyzstd/0001-Bump-setuptools-dependency-from-74-to-79.patch