OS Manuals

/opt/chainguard/nemo-rl/venvs/mcore/bin/cythonize

NeMo RL venv for the Megatron training workers

From nemo-rl-cuda-13.0-mcore 0.7.0-r23 (enterprise-packages), captured 2026-11-09 by running cythonize --help (exit 0). permalink

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 ...]

positional arguments:
  sources

options:
  -h, --help            show this help message and exit
  -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)
  -+, --cplus           Compile as C++ rather than C
  -a, --annotate        Produce a colorized HTML version of the source.
  --annotate-fullc      Produce a colorized HTML version of the source which includes entire
                        generated C/C++-code.
  -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+run CODESTRING as benchmark in first module's
                        namespace (implies -i)
  --setup CODESTRING    use CODESTRING as pre-benchmark setup code for --bench
  -j, --parallel N      run builds in N parallel jobs (default: CPU count)
  -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
  --no-docstrings       strip docstrings
  -M, --depfile         produce depfiles for the sources

Environment variables:
  CYTHON_FORCE_REGEN: if set to 1, 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
Options (22)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
-X, --directive NAME=VALUEset a compiler directivehelp
-E, --compile-time-env NAME=VALUEset a compile time environment variablehelp
-s, --option NAME=VALUEset a cythonize optionhelp
-2use Python 2 syntax mode by defaulthelp
-3use Python 3 syntax mode by defaulthelp
--3struse Python 3 syntax mode by default (deprecated alias for -3)help
--cplusCompile as C++ rather than Chelp
-a, --annotateProduce a colorized HTML version of the source.help
--annotate-fullcProduce a colorized HTML version of the source which includes entire generated C/C++-code.help
-x, --exclude PATTERNexclude certain file patterns from the compilationhelp
-b, --buildbuild extension modules using distutils/setuptoolshelp
-i, --inplacebuild extension modules in place using distutils/setuptools (implies -b)help
--timeit CODESTRINGbuild in place, then compile+run CODESTRING as benchmark in first module's namespace (implies -i)help
--setup CODESTRINGuse CODESTRING as pre-benchmark setup code for --benchhelp
-j, --parallel Nrun builds in N parallel jobs (default: CPU count)help
-f, --forceforce recompilationhelp
-q, --quietbe less verbose during compilationhelp
--lenientincrease Python compatibility by ignoring some compile time errorshelp
-k, --keep-goingcompile as much as possible, ignore compilation failureshelp
--no-docstringsstrip docstringshelp
-M, --depfileproduce depfiles for the sourceshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.