git: 32a49aebc019 - main - devel/py-pysimdjson: Fix build with Python 3.13
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Oct 2026 15:47:33 UTC
The branch main has been updated by thierry:
URL: https://cgit.FreeBSD.org/ports/commit/?id=32a49aebc019c23b385a8a1b0ece023737dd6ec9
commit 32a49aebc019c23b385a8a1b0ece023737dd6ec9
Author: Pattems <patrick@crandol.com>
AuthorDate: 2026-10-14 00:36:51 +0000
Commit: Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2026-10-18 15:47:24 +0000
devel/py-pysimdjson: Fix build with Python 3.13
The PyPI sdist ships csimdjson.cpp generated by Cython 3.0.2, which
fails to build with Python 3.13 (_PyLong_AsByteArray(),
_PyGen_SetStopIterationValue()), and does not include csimdjson.pyx
to rebuild it from. Fetch the v6.0.2 tag from GitHub, which has the
same setup.py and bundled simdjson plus the .pyx, and let setup.py run
lang/cython (BUILD_WITH_CYTHON=1 FORCE_REBUILD=1).
While here, add concurrent to USE_PYTHON and fix portlint warnings.
PR: 299530
---
devel/py-pysimdjson/Makefile | 15 +++++++++++----
devel/py-pysimdjson/distinfo | 6 +++---
2 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/devel/py-pysimdjson/Makefile b/devel/py-pysimdjson/Makefile
index 622d36434806..7717563d53a5 100644
--- a/devel/py-pysimdjson/Makefile
+++ b/devel/py-pysimdjson/Makefile
@@ -1,8 +1,8 @@
PORTNAME= pysimdjson
PORTVERSION= 6.0.2
-PORTREVISION= 5
+DISTVERSIONPREFIX= v
+PORTREVISION= 6
CATEGORIES= devel python
-MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= thierry@FreeBSD.org
@@ -17,9 +17,16 @@ LICENSE= MIT
# ${PYTHON_PKGNAMEPREFIX}pytest-benchmark>=0:devel/py-pytest-benchmark@${PY_FLAVOR}
USES= python
-USE_PYTHON= cython distutils
+USE_GITHUB= yes
+GH_ACCOUNT= TkTech
+USE_PYTHON= concurrent cython distutils
-.if ! defined(WITH_DEBUG)
+# The PyPI sdist ships csimdjson.cpp from Cython 3.0.2, which fails with
+# Python 3.13, but not csimdjson.pyx. Use the GitHub tag and rebuild it.
+MAKE_ENV+= BUILD_WITH_CYTHON=1 \
+ FORCE_REBUILD=1
+
+.if !defined(WITH_DEBUG)
LDFLAGS+= -s
.endif
diff --git a/devel/py-pysimdjson/distinfo b/devel/py-pysimdjson/distinfo
index 2a3bc7456fb6..0e054071f96e 100644
--- a/devel/py-pysimdjson/distinfo
+++ b/devel/py-pysimdjson/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1707331543
-SHA256 (pysimdjson-6.0.2.tar.gz) = ddbd6fecd42aa01c5c87d3c79b8ede1885b6763337d21745587a5392572c1f45
-SIZE (pysimdjson-6.0.2.tar.gz) = 1213207
+TIMESTAMP = 1791692603
+SHA256 (TkTech-pysimdjson-v6.0.2_GH0.tar.gz) = cbef30695bab2ec3b934296a52437731262f0d0a1b471add1bd041b06a8054e3
+SIZE (TkTech-pysimdjson-v6.0.2_GH0.tar.gz) = 4493696