diff mbox series

[1/2] python3-pyzstd: import 0.17.0 from meta-python

Message ID 20251216095459.3551985-2-koen.kooi@oss.qualcomm.com
State New
Headers show
Series Fix and adjust ukify packaging | expand

Commit Message

Koen Kooi Dec. 16, 2025, 9:54 a.m. UTC
From the upstream website:
	Pyzstd module provides classes and functions for compressing and
	decompressing data, using Facebook's Zstandard (or zstd as short name)
	algorithm.

This recipe is being moved over for systemd 258.x, the 'ukify' tool
depends on this.

Signed-off-by: Koen Kooi <koen.kooi@oss.qualcomm.com>
---
 ...-setuptools-dependency-from-74-to-89.patch | 27 +++++++++++++++++++
 .../python/python3-pyzstd_0.17.0.bb           | 19 +++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pyzstd/0001-Bump-setuptools-dependency-from-74-to-89.patch
 create mode 100644 meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb

Comments

Alexander Kanavin Dec. 16, 2025, 11:38 a.m. UTC | #1
On Tue, 16 Dec 2025 at 10:55, Koen Kooi via lists.openembedded.org
<koen.kooi=oss.qualcomm.com@lists.openembedded.org> wrote:
> +-requires = ["setuptools>=64,<74"]
> ++requires = ["setuptools>=64,<89"]

The upper limit should perhaps be dropped altogether perhaps?
Setuptools gets bumped in oe-core all the time, this patch shouldn't
stand in the way.

Alex
Koen Kooi Dec. 16, 2025, 11:44 a.m. UTC | #2
> Op 16 dec 2025, om 12:38 heeft Alexander Kanavin <alex.kanavin@gmail.com> het volgende geschreven:
> 
> On Tue, 16 Dec 2025 at 10:55, Koen Kooi via lists.openembedded.org
> <koen.kooi=oss.qualcomm.com@lists.openembedded.org> wrote:
>> +-requires = ["setuptools>=64,<74"]
>> ++requires = ["setuptools>=64,<89"]
> 
> The upper limit should perhaps be dropped altogether perhaps?
> Setuptools gets bumped in oe-core all the time, this patch shouldn't
> stand in the way.

Thanks for the fast review and great catch! I'll run some tests and send a v2 later this week if that works as expe.

regards,

Koen
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-pyzstd/0001-Bump-setuptools-dependency-from-74-to-89.patch b/meta/recipes-devtools/python/python3-pyzstd/0001-Bump-setuptools-dependency-from-74-to-89.patch
new file mode 100644
index 0000000000..f7b43b12a7
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pyzstd/0001-Bump-setuptools-dependency-from-74-to-89.patch
@@ -0,0 +1,27 @@ 
+From bc9b975c9f41e43481a2eb0623b4180926baecec 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 89
+
+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..5d4d511 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,<89"]
+ backend-path = ["build_script"]
+ build-backend = "pyzstd_pep517"
diff --git a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb b/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
new file mode 100644
index 0000000000..d93411beba
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
@@ -0,0 +1,19 @@ 
+DESCRIPTION = "Pyzstd module provides classes and functions for compressing and \
+decompressing data, using Facebook’s Zstandard (or zstd as short name) algorithm."
+HOMEPAGE = "https://github.com/animalize/pyzstd"
+SECTION = "devel/python"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e"
+
+PYPI_PACKAGE = "pyzstd"
+
+SRC_URI += "file://0001-Bump-setuptools-dependency-from-74-to-89.patch"
+SRC_URI[sha256sum] = "d84271f8baa66c419204c1dd115a4dec8b266f8a2921da21b81764fa208c1db6"
+
+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() {
+    sed -i -e "s|'-flto'|''|" ${S}/setup.py
+}