cython: C-Extensions for Python, an optimizing static compiler¶
Description¶
Cython is a language that makes writing C extensions for the Python language as easy as Python itself. Cython is based on the well-known Pyrex, but supports more cutting edge functionality and optimizations.
The Cython language is very close to the Python language, but Cython additio- nally supports calling C functions and declaring 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 wrapping for external C libraries, and for fast C modules that speed up the execution of Python code.
License¶
Apache License, Version 2.0
Upstream Contact¶
Type¶
standard
Dependencies¶
$(PYTHON)
$(PYTHON_TOOLCHAIN)
Version Information¶
package-version.txt:
3.1.4
src/pyproject.toml:
cython >=3.0.8, <3.2.0
cython >=3.0.8,<3.2.0
version_requirements.txt:
cython
Installation commands¶
$ pip install cython\>=3.0.8\,\<3.2.0 cython\>=3.0.8\,\<3.2.0
$ sage -i cython
$ sudo pacman -S cython
$ conda install cython\>=3.0\,\!=3.0.3\,\<4.0
$ sudo apt-get install cython3
$ sudo dnf install python3-cython
$ sudo pkg install lang/cython
$ sudo emerge dev-python/cython
$ brew install cython
$ sudo port install py-cython
$ sudo zypper install python3-Cython
$ sudo xbps-install python3-Cython
If the system package is installed and if the (experimental) option
--enable-system-site-packages
is passed to ./configure
, then
./configure
will check if the system package can be used.