HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //proc/self/root/opt/alt/python37/share/doc/alt-python37-Cython/Demos/README.rst
To run demos do::

    cd Demos
    make test

which runs ``run_primes.py``, ``run_numeric_demo.py``, ``run_spam.py``,
``integrate_timing.py``, ``callback/runcheese.py`` and ``embed/embedded``

For other demos::

    cd libraries
    python setup.py build_ext --inplace
    python -c 'import call_mymath;print(call_mymath.call_sinc(1))'

To run one of the benchmarks for 10 iterations to compare cython and python timings::

    cd benchmarks
    python setup.py build_ext --inplace
    python nqueens.py -n 10
    python -c 'import nqueens;print(nqueens.test_n_queens(10))'

To demo ``cython/bin/cython_freeze``::

    make
    ./nCr 10 5
    ./python

* Build notes

  * benchmarks/chaos.py requires cython 0.24 or newer

  * embed and freeze work for python2, require cython 0.24 or higher
    for python 3.5