Compile/run individual Cython file from Sage's source?

asked 2023-03-07 17:09:26 +0200

I have been trying to understand how the 'generate_children' function works in the "binary_code.pyx" file, and so I would like to be able to edit and compile/run this file on its own without having to build the entirety of Sage each time. My attempts to try to do this with a "setup.py" file or using the command-line 'cythonize' command have led to a lot of complications, so I was wondering if there was a more straightforward way to do so. Do you have any advice on how to be able to compile/run an individual Cython file from the Sage source code? I guess this would also include compiling whatever dependencies would be required for it to run.

edit retag flag offensive close merge delete

Comments

1

If you modify one cython file, make will only recompile this cython file and its few dependencies.

FrédéricC gravatar imageFrédéricC ( 2023-03-08 16:58:25 +0200 )edit
1

make build might be even better than make for tinkering, since it won't rebuild any altered parts of the reference manual.

John Palmieri gravatar imageJohn Palmieri ( 2023-03-09 20:38:32 +0200 )edit