pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-cython
Module Name: pkgsrc
Committed By: adam
Date: Wed Nov 4 10:45:26 UTC 2026
Modified Files:
pkgsrc/devel/py-cython: Makefile PLIST distinfo
Removed Files:
pkgsrc/devel/py-cython/patches: patch-Cython_Utility_ModuleSetupCode.c
patch-Cython_Utility_Optimize.c
Log Message:
py-cython: updated to 3.3.1
3.3.1 (2026-11-01)
Most of the bugs fixed in this release were regressions in 3.3.0.
Features added
* Declarations for the C99 ``bool`` type in ``<stdbool.h>`` were added.
(Github issue :issue:`8011`)
* Fused function objects are slightly smaller in the Limited API.
(Github issue :issue:`7967`)
* Cython warns when enabling subinterpreter support for modules that cannot
currently support it for technical reasons.
(Github issue :issue:`8006`)
* The shared module is now automatically declared as ``freethreading_compatible`` and sets
``subinterpretes_compatible`` as applicable (currently depending on memoryview usage).
Both are overridable by users as usual.
(Github issue :issue:`8037`)
Bugs fixed
* Constant folding of multiplied sequences could return incorrect results.
Patch by orztrickster. (Github issue :issue:`8021`)
* Cython 3.3.0 incorrectly assumed that Python integer powers always return integers.
Patch by Clay Dugo. (Github issue :issue:`7989`)
* The return value of optimised calls to ``dict.get()``, ``dict.pop()`` and ``dict.setdefault()``
were inferred independent of their default values, leading to incorrect C code being generated.
(Github issue :issue:`7991`)
* Some redeclarations of annotated variables were incorrectly rejected.
They are now generally allowed and Cython only warns about obviously incorrect cases.
(Github issue :issue:`7920`)
* Type inference now respects ``annotation_typing=False`` for local variable annotations.
Patch by GruffElixir. (Github issue :issue:`7994`)
* Type inference depended on arbitrary set ordering when circular references are involved.
As an effect, the ``Cython.Compiler.FlowControl`` module was translated to slightly
non-deterministic C code.
(Github issue :issue:`8002`)
* Assigning different slices of the same memoryview to different extension type attributes
could generate incorrect refcounting code.
(Github issue :issue:`8016`)
* Enabling vectorcall for a class with a base class that doesn't have it incorrectly called
up to the non-existing base class vectorcall slot.
(Github issue :issue:`7936`)
* Cascaded assignments to differently type-inferred variables could generate incorrect C code.
(Github issue :issue:`7937`)
* Method calls on typed containers with unused results could generate incorrect C code.
(Github issue :issue:`7922`)
* Using ``None``-returning builtin methods as part of expressions could generate incorrect C code.
(Github issue :issue:`7946`)
* The C code generated for exception groups could lack a C variable declaration.
Patch by bwenstar. (Github issue :issue:`8043`)
* Exporting fused functions generated invalid C code in API header files.
Patch by Ardi Loot. (Github issue :issue:`7972`)
* With ``CYTHON_USE_MODULE_STATE=1``, using a memoryview typed argument with default generated incorrect C code.
Patch by demrom. (Github issue :issue:`7981`)
* Non-trivially generated keyword arguments (e.g. ``**{dict}``) could fail to compile.
(Github issue :issue:`7921`)
* Builtin method calls on dicts from non-trivial expressions could fail to compile.
(Github issue :issue:`7931`)
* Some builtin optimisations could fail to compile on non-trivial expressions.
(Github issue :issue:`7957`)
* Typing a global variable with an unknown type could fail to compile.
(Github issue :issue:`7970`)
* Declaring a C array of extension types crashed Cython after reporting the error.
Patch by Vladimir Saraikin. (Github issue :issue:`1993`)
* Optimised string comparison to single-character text strings accidentally allowed bytes.
(Github issue :issue:`7924`)
* Errors while testing object attributes in match statements were ignored.
Patch by Vineet Kumar. (Github issue :issue:`8029`)
* A dangling pointer was fixed when assigning to attributes of extension types.
(Github issue :issue:`7907`)
* Re-raising an exception from an awaited Python coroutine could leak a frame reference.
Patch by bwenstar. (Github issue :issue:`8042`)
* Trying to reimport a module compiled with module state now raises an exception instead of
returning the original module, which let CPython overwrite the module state and crash.
Patch by Max Azatian. (Github issue :issue:`8048`)
* Throwing into a pending async generator's ``aclose()`` could crash.
Patch by Arthur Villeneuve. (Github issue :issue:`8027`)
* A crash was resolved when mixing Cython modules compiled with different Limited API versions.
(Github issue :issue:`7914`)
* A GCC LTO-related compile/link problem was resolved when comparing Python ints.
(Github issue :issue:`7908`)
* ``isfinite()`` was used for Python float comparisons but not defined in NetBSD in C++ compile mode.
(Github issue :issue:`7915`)
* The ``__Pyx_pretend_to_initialize()`` function could fail to compile in C code that doesn't even need it.
(Github issue :issue:`7941`)
* Modules containing only the empty string as single bytes literal generated invalid C code.
(Github issue :issue:`7965`)
* User cimports of C++ names could break the internally generated C++ conversion functions
and lead to compile failures or incorrect C++ code.
(Github issue :issue:`7939`)
* The C code generated for the shared module was not deterministic.
Patch by Ralf Gommers. (Github issue :issue:`7982`)
* Special .pxd file names like ``__init__.pxd`` and version file suffixes were mishandled
when stripping file paths.
Patch by Ralf Gommers. (Github issue :issue:`7984`)
* Non-standard type initialisation in SageMath allowed repeated initialisation
of Cython's internal types, overwriting the previous types and leaking memory.
Patch by Chenxin Zhong. (Github issue :issue:`7976`)
* Single-phase module initialisation in freethreading Python didn't allow overriding the
FT-compatibility flag from a C macro (as supported for multi-phase initialisation).
(Github issue :issue:`8036`)
* A C compiler warning in MSVC was resolved.
(Github issue :issue:`7911`)
* A C compiler warning for an unused variable was resolved.
Patch by WyattBlue. (Github issue :issue:`8087`)
* PyPy now uses type specs by default.
Patch by Matti Picus. (Github issue :issue:`7947`)
* Some older PyPy C-API workarounds were disabled for newer versions.
Patch by Matti Picus. (Github issue :issue:`7974`)
* GraalPython now uses the Limited API for Cython functions.
Patch by Michael Šimáček. (Github issue :issue:`7971`)
* The C-API of the ``array`` module is supported in GraalPython.
(Github issue :issue:`7964`)
* Older Android builds no longer use C ``complex`` (which they only partially implemented).
(Github issue :issue:`8026`)
* Copying the ``Shadow.py`` module into user packages could fail due to internal re-imports.
Patch by Vincent Fazio. (Github issue :issue:`7999`)
* Several issues were resolved when using the Cython file cache directory in concurrent processes.
The cache is also more effective now because it previously deleted the most recent instead of
the oldest file on cleanup.
Patches by Lawrence Mitchell and Samuel Hills.
(Github issues :issue:`7983`, :issue:`7985`, :issue:`8090`)
* The Cython file cache key didn't take the compiler directives into account.
Patch by Robert Dazi. (Github issue :issue:`7532`)
* The encoding line detection at the start of source files was too eager to search also non-comments.
(Github issue :issue:`7935`)
* Enabling annotated HTML file generation together with the shared module could fail to compile.
(Github issue :issue:`7910`)
To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.124 pkgsrc/devel/py-cython/Makefile
cvs rdiff -u -r1.38 -r1.39 pkgsrc/devel/py-cython/PLIST
cvs rdiff -u -r1.102 -r1.103 pkgsrc/devel/py-cython/distinfo
cvs rdiff -u -r1.1 -r0 \
pkgsrc/devel/py-cython/patches/patch-Cython_Utility_ModuleSetupCode.c \
pkgsrc/devel/py-cython/patches/patch-Cython_Utility_Optimize.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-cython/Makefile
diff -u pkgsrc/devel/py-cython/Makefile:1.123 pkgsrc/devel/py-cython/Makefile:1.124
--- pkgsrc/devel/py-cython/Makefile:1.123 Fri Oct 16 19:43:47 2026
+++ pkgsrc/devel/py-cython/Makefile Wed Nov 4 10:45:26 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.123 2026/10/16 19:43:47 adam Exp $
+# $NetBSD: Makefile,v 1.124 2026/11/04 10:45:26 adam Exp $
-DISTNAME= cython-3.3.0
+DISTNAME= cython-3.3.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=C/Cython/}
Index: pkgsrc/devel/py-cython/PLIST
diff -u pkgsrc/devel/py-cython/PLIST:1.38 pkgsrc/devel/py-cython/PLIST:1.39
--- pkgsrc/devel/py-cython/PLIST:1.38 Sun Aug 23 08:03:49 2026
+++ pkgsrc/devel/py-cython/PLIST Wed Nov 4 10:45:26 2026
@@ -1,7 +1,12 @@
-@comment $NetBSD: PLIST,v 1.38 2026/08/23 08:03:49 wiz Exp $
+@comment $NetBSD: PLIST,v 1.39 2026/11/04 10:45:26 adam Exp $
bin/cygdb-${PYVERSSUFFIX}
bin/cython-${PYVERSSUFFIX}
bin/cythonize-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/Cython/Build/BuildExecutable.py
${PYSITELIB}/Cython/Build/BuildExecutable.pyc
${PYSITELIB}/Cython/Build/BuildExecutable.pyo
@@ -367,6 +372,7 @@ ${PYSITELIB}/Cython/Includes/libc/locale
${PYSITELIB}/Cython/Includes/libc/math.pxd
${PYSITELIB}/Cython/Includes/libc/setjmp.pxd
${PYSITELIB}/Cython/Includes/libc/signal.pxd
+${PYSITELIB}/Cython/Includes/libc/stdbool.pxd
${PYSITELIB}/Cython/Includes/libc/stddef.pxd
${PYSITELIB}/Cython/Includes/libc/stdint.pxd
${PYSITELIB}/Cython/Includes/libc/stdio.pxd
@@ -580,11 +586,6 @@ ${PYSITELIB}/Cython/__init__.pyc
${PYSITELIB}/Cython/__init__.pyo
${PYSITELIB}/Cython/_shared.so
${PYSITELIB}/Cython/py.typed
-${PYSITELIB}/${WHEEL_INFODIR}/METADATA
-${PYSITELIB}/${WHEEL_INFODIR}/RECORD
-${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
-${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
-${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/cython.py
${PYSITELIB}/cython.pyc
${PYSITELIB}/cython.pyo
Index: pkgsrc/devel/py-cython/distinfo
diff -u pkgsrc/devel/py-cython/distinfo:1.102 pkgsrc/devel/py-cython/distinfo:1.103
--- pkgsrc/devel/py-cython/distinfo:1.102 Tue Aug 25 10:50:00 2026
+++ pkgsrc/devel/py-cython/distinfo Wed Nov 4 10:45:26 2026
@@ -1,10 +1,8 @@
-$NetBSD: distinfo,v 1.102 2026/08/25 10:50:00 wiz Exp $
+$NetBSD: distinfo,v 1.103 2026/11/04 10:45:26 adam Exp $
-BLAKE2s (cython-3.3.0.tar.gz) = d316b29046a86d4efc236f5f7b5e77a53303cdafcd2dd62706a516a195b37948
-SHA512 (cython-3.3.0.tar.gz) = 733892dcdb8a12f5914e46e8d7c83e2429573f292c1ff9817bce83fb18c9183d34956e5b061dbe790d822ca62c85f3e2bfe7b1e7ee38ab9302fcd09351a161be
-Size (cython-3.3.0.tar.gz) = 3727515 bytes
-SHA1 (patch-Cython_Utility_ModuleSetupCode.c) = 928f9ba352efe9b33ea82087e4a98579a4a26dc9
-SHA1 (patch-Cython_Utility_Optimize.c) = 3bff4597c2d191eeadf26f36b4e6ffaa1fdec9e0
+BLAKE2s (cython-3.3.1.tar.gz) = 87c41711ae3e39b13a2016b79047a5cc21b2e3fe9b1814c37bc763f885facaa1
+SHA512 (cython-3.3.1.tar.gz) = ba12683b6faadd6914c0b87fa5cbfbb37453e3030a0ed8080e128d98f8fba6d49387003f62b4f75f3bb00ee20d04db88f7babcda279af96f24df196c3d1a8e0b
+Size (cython-3.3.1.tar.gz) = 3743354 bytes
SHA1 (patch-Demos_embed_Makefile) = 67c4f662a8d79d39cbf8808d2e87d91a26ef28b9
SHA1 (patch-runtests.py) = b955b089d284f638eb5de85878204c084c550ef5
SHA1 (patch-tests_run_test__patma.py) = 9dddc271d45f48f46e1c818a1140df709726a266
Home |
Main Index |
Thread Index |
Old Index