Skip to contentSkip to conversation

python3-pyzstd: upgrade 0.17.0 -> 0.19.1

PATCH In review Liu Yiding 4 participants 7 messages Jan 7 – Jan 8 Zstd

lore
Share & tools
lore

Liu Yiding

author
#0 lore raw

PATCH 1/1 python3-pyzstd: upgrade 0.17.0 -> 0.19.1

1.Changelog:
Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.

2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.

3.Remove do_configure:append as there is no setup.py in 0.19.1

---
 ...emove-setuptools-version-limit-of-74.patch | 27 -------------------
 ...std_0.17.0.bb => python3-pyzstd_0.19.1.bb} | 10 +++----
 2 files changed, 3 insertions(+), 34 deletions(-)
 delete mode 100644 meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
 rename meta/recipes-devtools/python/{python3-pyzstd_0.17.0.bb => python3-pyzstd_0.19.1.bb} (53%)
meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch deleted +0 -27
deleted file mode 100644
index f2910322ff..0000000000
@@ -1,27 +0,0 @@
-From bc9b975c9f41e43481a2eb0623b4180926baecec Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 9 Apr 2025 14:38:31 -0700
-Subject: [PATCH] Remove setuptools version limit of '74'
-
-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 <[email protected]>
----
- 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"]
- backend-path = ["build_script"]
- build-backend = "pyzstd_pep517"
meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb renamed from meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb +3 -7
similarity index 53%
rename from meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
rename to meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
index af7069b6ed..154e591f4b 100644
@@ -9,12 +9,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e"
 
 PYPI_PACKAGE = "pyzstd"
 
-SRC_URI += "file://0001-Remove-setuptools-version-limit-of-74.patch"
-SRC_URI[sha256sum] = "d84271f8baa66c419204c1dd115a4dec8b266f8a2921da21b81764fa208c1db6"
+SRC_URI[sha256sum] = "36723d3c915b3981de9198d0a2c82b2f5fe3eaa36e4d8d586937830a8afc7d72"
 
-inherit pypi python_setuptools_build_meta ptest-python-pytest
+inherit pypi python_setuptools_build_meta ptest-python-pytest python_hatchling 
 
-# 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
-}
+DEPENDS += "python3-hatch-vcs-native"
Signature · 1 line
2.43.0
#1 lore raw
Quoted 4 lines

Op 7 jan 2026, om 10:07 heeft Yiding Liu (Fujitsu) via lists.openembedded.org <[email protected]> het volgende geschreven:

Quoted 8 lines

1.Changelog:
Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.

2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.

3.Remove do_configure:append as there is no setup.py in 0.19.1

Thanks for doing this! This matches the local commit I was testing, all the results came back OK this morning, so:

regards,

Koen

Quoted 75 lines

---
...emove-setuptools-version-limit-of-74.patch | 27 ------------------- ...std_0.17.0.bb => python3-pyzstd_0.19.1.bb} | 10 +++----

2 files changed, 3 insertions(+), 34 deletions(-)

delete mode 100644 meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch rename meta/recipes-devtools/python/{python3-pyzstd_0.17.0.bb => python3-pyzstd_0.19.1.bb} (53%)

meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch deleted +0 -27
deleted file mode 100644
index f2910322ff..0000000000
@@ -1,27 +0,0 @@
-From bc9b975c9f41e43481a2eb0623b4180926baecec Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Wed, 9 Apr 2025 14:38:31 -0700
-Subject: [PATCH] Remove setuptools version limit of '74'
-
-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 <[email protected]>
----
- 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"]
- backend-path = ["build_script"]
- build-backend = "pyzstd_pep517"
meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb renamed from meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb +0 -0
similarity index 53%
rename from meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
rename to meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
index af7069b6ed..154e591f4b 100644
@@ -9,12 +9,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e"
 

PYPI_PACKAGE = "pyzstd"

meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb renamed from meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb +3 -7
-SRC_URI += "file://0001-Remove-setuptools-version-limit-of-74.patch"
-SRC_URI[sha256sum] = "d84271f8baa66c419204c1dd115a4dec8b266f8a2921da21b81764fa208c1db6"
+SRC_URI[sha256sum] = "36723d3c915b3981de9198d0a2c82b2f5fe3eaa36e4d8d586937830a8afc7d72"
 
-inherit pypi python_setuptools_build_meta ptest-python-pytest
+inherit pypi python_setuptools_build_meta ptest-python-pytest python_hatchling 
 
-# 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
-}
+DEPENDS += "python3-hatch-vcs-native"
Signature · 10 lines
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#228962): https://lists.openembedded.org/g/openembedded-core/message/228962
Mute This Topic: https://lists.openembedded.org/mt/117131419/9418801
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw
In reply to Liu Yiding
Quoted 9 lines · Yiding Liu (Fujitsu) via lists.openembedded.org

1.Changelog:
Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.

2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.

3.Remove do_configure:append as there is no setup.py in 0.19.1

---

Hi Liu,

Thanks for your patch.

It looks like the ptests are failing:

Failed ptests:
{'python3-pyzstd': 'START: ptest-runner\n'

                   '2026-01-07T17:04\n'
                   '\n'
                   'ImportError while importing test module '
                   "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
                   'Hint: make sure your test modules/packages have valid '
                   'Python names.\n'
                   'Traceback:\n'
                   '../../python3.13/importlib/__init__.py:88: in '
                   'import_module\n'
                   '    return _bootstrap._gcd_import(name[level:], package, '
                   'level)\n'
                   '           '
                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                   'tests/test_seekable.py:17: in <module>\n'
                   '    from pyzstd import (\n'
                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                   '<module>\n'
                   '    from backports import zstd\n'
                   "E   ModuleNotFoundError: No module named 'backports'\n"
                   'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
                   '\n'
                   'ImportError while importing test module '
                   "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
                   'Hint: make sure your test modules/packages have valid '
                   'Python names.\n'
                   'Traceback:\n'
                   '../../python3.13/importlib/__init__.py:88: in '
                   'import_module\n'
                   '    return _bootstrap._gcd_import(name[level:], package, '
                   'level)\n'
                   '           '
                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                   'tests/test_zstd.py:19: in <module>\n'
                   '    from pyzstd import ZstdCompressor, '
                   'RichMemZstdCompressor, \\\n'
                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                   '<module>\n'
                   '    from backports import zstd\n'
                   "E   ModuleNotFoundError: No module named 'backports'\n"
                   'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
                   '============================================================================\n'
                   'Testsuite summary\n'
                   '# TOTAL: 2\n'
                   '# PASS: 0\n'
                   '# SKIP: 0\n'
                   '# XFAIL: 0\n'
                   '# FAIL: 0\n'
                   '# XPASS: 0\n'
                   '# ERROR: 2\n'
                   '\n'
                   'ERROR: Exit status is 2\n'
                   'DURATION: 1\n'}

ptests which had no test results:
['python3-pyzstd']

Can you have a look at this issue?

Thanks,
Mathieu

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw
Quoted 72 lines · Mathieu Dubois-Briand
Quoted 9 lines · Yiding Liu (Fujitsu) via lists.openembedded.org

1.Changelog:
Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.

2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.

3.Remove do_configure:append as there is no setup.py in 0.19.1

---

Hi Liu,

Thanks for your patch.

It looks like the ptests are failing:

Failed ptests:
{'python3-pyzstd': 'START: ptest-runner\n'

                   '2026-01-07T17:04\n'
                   '\n'
                   'ImportError while importing test module '
                   "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
                   'Hint: make sure your test modules/packages have valid '
                   'Python names.\n'
                   'Traceback:\n'
                   '../../python3.13/importlib/__init__.py:88: in '
                   'import_module\n'
                   '    return _bootstrap._gcd_import(name[level:], package, '
                   'level)\n'
                   '           '
                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                   'tests/test_seekable.py:17: in <module>\n'
                   '    from pyzstd import (\n'
                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                   '<module>\n'
                   '    from backports import zstd\n'
                   "E   ModuleNotFoundError: No module named 'backports'\n"
                   'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
                   '\n'
                   'ImportError while importing test module '
                   "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
                   'Hint: make sure your test modules/packages have valid '
                   'Python names.\n'
                   'Traceback:\n'
                   '../../python3.13/importlib/__init__.py:88: in '
                   'import_module\n'
                   '    return _bootstrap._gcd_import(name[level:], package, '
                   'level)\n'
                   '           '
                   '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                   'tests/test_zstd.py:19: in <module>\n'
                   '    from pyzstd import ZstdCompressor, '
                   'RichMemZstdCompressor, \\\n'
                   '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                   '<module>\n'
                   '    from backports import zstd\n'
                   "E   ModuleNotFoundError: No module named 'backports'\n"
                   'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
                   '============================================================================\n'
                   'Testsuite summary\n'
                   '# TOTAL: 2\n'
                   '# PASS: 0\n'
                   '# SKIP: 0\n'
                   '# XFAIL: 0\n'
                   '# FAIL: 0\n'
                   '# XPASS: 0\n'
                   '# ERROR: 2\n'
                   '\n'
                   'ERROR: Exit status is 2\n'
                   'DURATION: 1\n'}
Quoted 7 lines

ptests which had no test results:
['python3-pyzstd']

Can you have a look at this issue?

Thanks,
Mathieu

Sorry, I was too quick again... Here is the link to the failure:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2881

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw
Quoted 80 lines

Op 7 jan 2026, om 18:19 heeft Mathieu Dubois-Briand via lists.openembedded.org <[email protected]> het volgende geschreven:

Quoted 75 lines · Mathieu Dubois-Briand
Quoted 9 lines · Yiding Liu (Fujitsu) via lists.openembedded.org

1.Changelog:
Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.

2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.

3.Remove do_configure:append as there is no setup.py in 0.19.1

---

Hi Liu,

Thanks for your patch.

It looks like the ptests are failing:

Failed ptests:
{'python3-pyzstd': 'START: ptest-runner\n'

                  '2026-01-07T17:04\n'
                  '\n'
                  'ImportError while importing test module '
                  "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
                  'Hint: make sure your test modules/packages have valid '
                  'Python names.\n'
                  'Traceback:\n'
                  '../../python3.13/importlib/__init__.py:88: in '
                  'import_module\n'
                  '    return _bootstrap._gcd_import(name[level:], package, '
                  'level)\n'
                  '           '
                  '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                  'tests/test_seekable.py:17: in <module>\n'
                  '    from pyzstd import (\n'
                  '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                  '<module>\n'
                  '    from backports import zstd\n'
                  "E   ModuleNotFoundError: No module named 'backports'\n"
                  'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
                  '\n'
                  'ImportError while importing test module '
                  "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
                  'Hint: make sure your test modules/packages have valid '
                  'Python names.\n'
                  'Traceback:\n'
                  '../../python3.13/importlib/__init__.py:88: in '
                  'import_module\n'
                  '    return _bootstrap._gcd_import(name[level:], package, '
                  'level)\n'
                  '           '
                  '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                  'tests/test_zstd.py:19: in <module>\n'
                  '    from pyzstd import ZstdCompressor, '
                  'RichMemZstdCompressor, \\\n'
                  '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                  '<module>\n'
                  '    from backports import zstd\n'
                  "E   ModuleNotFoundError: No module named 'backports'\n"
                  'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
                  '============================================================================\n'
                  'Testsuite summary\n'
                  '# TOTAL: 2\n'
                  '# PASS: 0\n'
                  '# SKIP: 0\n'
                  '# XFAIL: 0\n'
                  '# FAIL: 0\n'
                  '# XPASS: 0\n'
                  '# ERROR: 2\n'
                  '\n'
                  'ERROR: Exit status is 2\n'
                  'DURATION: 1\n'}

ptests which had no test results:
['python3-pyzstd']

Quoted 8 lines
Quoted 4 lines

Can you have a look at this issue?

Thanks,
Mathieu

Sorry, I was too quick again... Here is the link to the failure:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2881

I suspect that will resolve itself when python 3.14.x gets merged, but it would be good to see if it can be fixed to work with the current 3.13.x. And I really should enable ptests in my DISTROs....

regards,

Koen

Quoted 15 lines
Signature · 13 lines
-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#229016): https://lists.openembedded.org/g/openembedded-core/message/229016
Mute This Topic: https://lists.openembedded.org/mt/117131419/9418801
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#5 lore raw
Quoted 83 lines · Koen Kooi via lists.openembedded.org
Quoted 83 lines

Op 7 jan 2026, om 18:19 heeft Mathieu Dubois-Briand via lists.openembedded.org <[email protected]> het volgende geschreven:

Quoted 77 lines · Mathieu Dubois-Briand
Quoted 9 lines · Yiding Liu (Fujitsu) via lists.openembedded.org

1.Changelog:
Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.

2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.

3.Remove do_configure:append as there is no setup.py in 0.19.1

---

Hi Liu,

Thanks for your patch.

It looks like the ptests are failing:

Failed ptests:
{'python3-pyzstd': 'START: ptest-runner\n'

                  '2026-01-07T17:04\n'
                  '\n'
                  'ImportError while importing test module '
                  "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
                  'Hint: make sure your test modules/packages have valid '
                  'Python names.\n'
                  'Traceback:\n'
                  '../../python3.13/importlib/__init__.py:88: in '
                  'import_module\n'
                  '    return _bootstrap._gcd_import(name[level:], package, '
                  'level)\n'
                  '           '
                  '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                  'tests/test_seekable.py:17: in <module>\n'
                  '    from pyzstd import (\n'
                  '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                  '<module>\n'
                  '    from backports import zstd\n'
                  "E   ModuleNotFoundError: No module named 'backports'\n"
                  'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
                  '\n'
                  'ImportError while importing test module '
                  "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
                  'Hint: make sure your test modules/packages have valid '
                  'Python names.\n'
                  'Traceback:\n'
                  '../../python3.13/importlib/__init__.py:88: in '
                  'import_module\n'
                  '    return _bootstrap._gcd_import(name[level:], package, '
                  'level)\n'
                  '           '
                  '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                  'tests/test_zstd.py:19: in <module>\n'
                  '    from pyzstd import ZstdCompressor, '
                  'RichMemZstdCompressor, \\\n'
                  '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                  '<module>\n'
                  '    from backports import zstd\n'
                  "E   ModuleNotFoundError: No module named 'backports'\n"
                  'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
                  '============================================================================\n'
                  'Testsuite summary\n'
                  '# TOTAL: 2\n'
                  '# PASS: 0\n'
                  '# SKIP: 0\n'
                  '# XFAIL: 0\n'
                  '# FAIL: 0\n'
                  '# XPASS: 0\n'
                  '# ERROR: 2\n'
                  '\n'
                  'ERROR: Exit status is 2\n'
                  'DURATION: 1\n'}

ptests which had no test results:
['python3-pyzstd']

Can you have a look at this issue?

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Thanks,
Mathieu

Sorry, I was too quick again... Here is the link to the failure:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2881

I suspect that will resolve itself when python 3.14.x gets merged, but it would be good to see if it can be fixed to work with the current 3.13.x. And I really should enable ptests in my DISTROs....

Or you can import the backports recipe like meta-oe did to fix this as mentioned in:
https://lists.openembedded.org/g/openembedded-core/message/228548

#6 lore raw

Hi all
I found the ptest Depend backports recipe is already in meta-oe, how should I take it into oe-core? Add a new recipe python3-backports-zstd into oe-core?

Liu
________________________________
发件人: [email protected] <[email protected]> 代表 Martin Jansa via lists.openembedded.org <[email protected]> 发送时间: 2026年1月8日 02:36
收件人: [email protected] <[email protected]>
抄送: [email protected] <[email protected]>
主题: Re: [OE-core][PATCH] python3-pyzstd: upgrade 0.17.0 -> 0.19.1

Quoted 83 lines · Koen Kooi via lists.openembedded.org
Quoted 83 lines

Op 7 jan 2026, om 18:19 heeft Mathieu Dubois-Briand via lists.openembedded.org <[email protected]> het volgende geschreven:

Quoted 77 lines · Mathieu Dubois-Briand
Quoted 9 lines · Yiding Liu (Fujitsu) via lists.openembedded.org

1.Changelog:
Fix SeekableZstdFile write table entries on 32-bits architectures when there is a huge number of entries.

2.Remove 0001-Remove-setuptools-version-limit-of-74.patch as setuptools was removed in pyproject.toml.

3.Remove do_configure:append as there is no setup.py in 0.19.1

---

Hi Liu,

Thanks for your patch.

It looks like the ptests are failing:

Failed ptests:
{'python3-pyzstd': 'START: ptest-runner\n'

                  '2026-01-07T17:04\n'
                  '\n'
                  'ImportError while importing test module '
                  "'/usr/lib/python3-pyzstd/ptest/tests/test_seekable.py'.\n"
                  'Hint: make sure your test modules/packages have valid '
                  'Python names.\n'
                  'Traceback:\n'
                  '../../python3.13/importlib/__init__.py:88: in '
                  'import_module\n'
                  '    return _bootstrap._gcd_import(name[level:], package, '
                  'level)\n'
                  '           '
                  '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                  'tests/test_seekable.py:17: in <module>\n'
                  '    from pyzstd import (\n'
                  '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                  '<module>\n'
                  '    from backports import zstd\n'
                  "E   ModuleNotFoundError: No module named 'backports'\n"
                  'ERROR: tests/test_seekable.py:tests/test_seekable.py\n'
                  '\n'
                  'ImportError while importing test module '
                  "'/usr/lib/python3-pyzstd/ptest/tests/test_zstd.py'.\n"
                  'Hint: make sure your test modules/packages have valid '
                  'Python names.\n'
                  'Traceback:\n'
                  '../../python3.13/importlib/__init__.py:88: in '
                  'import_module\n'
                  '    return _bootstrap._gcd_import(name[level:], package, '
                  'level)\n'
                  '           '
                  '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
                  'tests/test_zstd.py:19: in <module>\n'
                  '    from pyzstd import ZstdCompressor, '
                  'RichMemZstdCompressor, \\\n'
                  '../../python3.13/site-packages/pyzstd/__init__.py:19: in '
                  '<module>\n'
                  '    from backports import zstd\n'
                  "E   ModuleNotFoundError: No module named 'backports'\n"
                  'ERROR: tests/test_zstd.py:tests/test_zstd.py\n'
                  '============================================================================\n'
                  'Testsuite summary\n'
                  '# TOTAL: 2\n'
                  '# PASS: 0\n'
                  '# SKIP: 0\n'
                  '# XFAIL: 0\n'
                  '# FAIL: 0\n'
                  '# XPASS: 0\n'
                  '# ERROR: 2\n'
                  '\n'
                  'ERROR: Exit status is 2\n'
                  'DURATION: 1\n'}

ptests which had no test results:
['python3-pyzstd']

Can you have a look at this issue?

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Thanks,
Mathieu

Sorry, I was too quick again... Here is the link to the failure:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2881

I suspect that will resolve itself when python 3.14.x gets merged, but it would be good to see if it can be fixed to work with the current 3.13.x. And I really should enable ptests in my DISTROs....

Or you can import the backports recipe like meta-oe did to fix this as mentioned in:
https://lists.openembedded.org/g/openembedded-core/message/228548