python-Cython
Port variant v14
Summary Compiler to write C extensions for Python (3.14)
Package version 3.2.2
Homepage https://cython.org/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 01 DEC 2025, 00:44:02 UTC
Port created 04 JAN 2020, 01:03:23 UTC
Subpackage Descriptions
single The Cython language makes writing C extensions for the Python language as easy as Python itself. Cython is a source code translator based on Pyrex_, but supports more cutting edge functionality and optimizations. The Cython language is a superset of the Python language (almost all Python code is also valid Cython code), but Cython additionally supports optional static typing to natively call C functions, operate with C++ classes and declare fast C types on variables and class attributes. This allows the compiler to generate very efficient C code from Cython code. This makes Cython the ideal language for writing glue code for external C/C++ libraries, and for fast C modules that speed up the execution of Python code. The newest Cython release can always be downloaded from https://cython.org/. Unpack the tarball or zip file, enter the directory, and then run:: pip install . Note that for one-time builds, e.g. for CI/testing, on platforms that are not covered by one of the wheel packages provided on PyPI *and* the pure Python wheel that we provide is not used, it is substantially faster than a full source build to install an uncompiled (slower) version of Cython with:: NO_CYTHON_COMPILE=true pip install . .. _Pyrex: https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ 3.2.2 (2025-11-30) ================== Features added -------------- * The C-API declarations were updated to include the new ``PyDict_*Ref()`` functions. (Github issue https://github.com/cython/cython/issues/7291) Bugs fixed ---------- * Iteration over literal sequences and strings in generators generated invalid C code since 3.2.0. This was a regression due to the C array iteration optimisation in https://github.com/cython/cython/issues/6926, which is now disabled inside of generators. (Github issue https://github.com/cython/cython/issues/7342) * Calling special methods of known exception types failed with an AttributeError. (Github issue https://github.com/cython/cython/issues/7342) * Calling the unbound __mul__ special method of builtin collections with subtypes failed. (Github issue https://github.com/cython/cython/issues/7340) * C string literals could generate invalid "const to non-const" casts in the C code. (Github issue https://github.com/cython/cython/issues/7346) * yield is no longer allowed inside of a ``cython.critical_section``, but *is* now allowed while holding a ``cython.pymutex``. (Github issue https://github.com/cython/cython/issues/7317) * Under lock congestion, acquiring the GIL could crash in Python 3.11, part 2. This bug was introduced in Cython 3.2.0. (Github issue https://github.com/cython/cython/issues/7312) * The new ``py_safe_* functions in libc.threads`` triggered C compiler warnings. (Github issue https://github.com/cython/cython/issues/7356)
Configuration Switches (platform-specific settings discarded)
PY313 OFF Build using Python 3.13 PY314 ON Build using Python 3.14
Package Dependencies by Type
Build (only) python314:dev:std
python-pip:single:v14
autoselect-python:single:std
Build and Runtime python314:primary:std
Download groups
main mirror://PYPIWHL/76/f2/98fd8d0b514622a789fd2824b59bd6041b799aaeeba14a8d92d52f6654dd
Distribution File Information
13b99ecb9482aff6a6c12d1ca6feef6940c507af909914b49f568de74fa965fb 1255106 python-src/cython-3.2.2-py3-none-any.whl
Ports that require python-Cython:v14
python-PyYAML:v14 YAML parser and emitter for Python (3.14)
python-borgbackup:v14 Deduplicated, encrypted, compressed backups (3.14)
python-compreffor:v14 CFF subroutinizer for fontTools (3.14)
python-lxml:v14 Binding to libxml2 and libxslt libraries (3.14)
python-numpy:v14 Array computing for Python (3.14)
python-pandas:v14 Data structures for time series, statistics (3.14)
python-pyclipper:v14 Cython wrapper for the AJ Clipper library (3.14)
python-pyzmq:v14 Python bindings for 0MQ (3.14)
python-scipy:v14 Scientific library for Python (3.14)