CYTHONIZE(1)
π CYTHONIZE(1) π
okay bestie, welcome to cythonize from the User Commands corner of the manual, and no cap this one is a whole vibe π
β¨ NAME β¨
cythonize β compile Cython code (.pyx) into C so you can build a Python extension π¦
πΈ DESCRIPTION πΈ
so the usage is literally this, copy it exactly pls:
usage: cythonize [-h] [-X NAME=VALUE,...] [-E NAME=VALUE,...] [-s
NAME=VALUE]
[-2] [-3] [--3str] [-+] [-a] [--annotate-fullc] [-x PATTERN] [-b]
[-i] [--timeit CODESTRING] [--setup CODESTRING] [-j N] [-f] [-q]
[--lenient] [-k] [--no-docstrings] [-M] [sources ...]
like, that's the whole shape of it, and it's giving "I have opinions and I will share them" π
π positional arguments: π
sourcesβ the files you're feeding in, your main characters fr
π options: π
-h,--helpβ show this help message and exit, the classic escape hatch π«Ά-X,--directive NAME=VALUE,...β set a compiler directive-E,--compile-time-env NAME=VALUE,...β set a compile time environment variable-s,--option NAME=VALUEβ set a cythonize option-2β use Python 2 syntax mode by default-3β use Python 3 syntax mode by default--3strβ use Python 3 syntax mode by default (deprecated alias for-3) β οΈ it's deprecated, so like, it still works but it's giving "old news"-+,--cplusβ Compile as C++ rather than C π₯-a,--annotateβ Produce a colorized HTML version of the source. β¨ aesthetic AND useful--annotate-fullcβ Produce a colorized HTML version of the source which includes entire generated C/C++-code. like the annotated version but extra, it shows the whole generated C/C++-code too π-x,--exclude PATTERNβ exclude certain file patterns from the compilation π-b,--buildβ build extension modules using distutils/setuptools-i,--inplaceβ build extension modules in place using distutils/setuptools (implies-b)--timeit CODESTRINGβ build in place, then compile+runCODESTRINGas benchmark in first module's namespace (implies-i) β±οΈ--setup CODESTRINGβ useCODESTRINGas pre-benchmark setup code for--bench-j,--parallel Nβ run builds in N parallel jobs (default: 6) β six at once, we love a multitasking queen π-f,--forceβ force recompilation-q,--quietβ be less verbose during compilation π€«--lenientβ increase Python compatibility by ignoring some compile time errors-k,--keep-goingβ compile as much as possible, ignore compilation failures, she does not give up πͺ--no-docstringsβ strip docstrings-M,--depfileβ produce depfiles for the sources
π Environment variables: π
CYTHON_FORCE_REGEN: if set to1, forces cythonize to regenerate the output files regardless
of modification times and changes.
CYTHON_CACHE_DIR: the base directory containing Cython's caches. Environment variables accepted by setuptools are supported to configure the C compiler and build:https://setuptools.pypa.io/en/latest/userguide/ext_modules.html#compiler-and-linker-options
bestie reminder: those two Cython env vars and the setuptools ones are all doing real work behind the scenes, so don't just set them and forget, iykyk π§
and that's the whole page, fr fr π this was Cython 3.1.6, from March 2026 β ty for reading, mwah ππ
π¦ where this page comes from
- ubuntu resolute: cython3 3.1.6+dfsg-1ubuntu2 Β· Apache-2.0
- ubuntu stonking: cython3 3.1.6+dfsg-1ubuntu2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms