Scroll to navigation

CYTHON(1) User Commands CYTHON(1)

NAME

Cython version - compile Cython code (.pyx) into C to build a Python extension

SYNOPSIS

cython [options] sourcefile.{pyx,py} ...

DESCRIPTION

Cython (http://cython.org) is a compiler for code written in the Cython language. Cython is based on Pyrex by Greg Ewing.

OPTIONS

Display version number of cython compiler
Write error messages to a listing file
Search for include files in named directory (multiple include directories are allowed).
Specify name of generated C file
Only compile newer source files
Compile all source files (overrides implied -t)
Be verbose, print file names on multiple compilation
If specified, the positions in Cython files of each function definition is embedded in its docstring.
Release interned objects on python exit, for memory debugging. Level indicates aggressiveness, default 0 releases nothing.
Sets the working directory for Cython (the directory modules are searched from)
Output debug information for cygdb
Specify gdb debug information output directory. Implies --gdb.
Strip docstrings from the compiled module.
Produce a colorized HTML version of the source.
Annotate and include coverage information from cov.xml.
Produce #line directives pointing to the .pyx source
Output a C++ rather than C file.
Generate a main() function that embeds the Python interpreter.
-2
Compile based on Python-2 syntax and code semantics.
-3
Compile based on Python-3 syntax and code semantics.
--3str
Compile based on Python-3 syntax and code semantics without assuming unicode by default for string literals under Python 2.
Change some compile time errors to runtime errors to improve Python compatibility
Add cincluded headers to any auto-generated header files.
Abort the compilation on the first error
Make all warnings into errors
Enable extra warnings

-X, --directive <name>=<value>[,<name=value,...] Overrides a compiler directive

-E, --compile-time-env name=value[,<name=value,...] Provides compile time env like DEF would do.

April 2020 Cython 0.29.14