Ask Your Question

Revision history [back]

If you want to compile once and for all you need to construct a proper Python module. You would first have to make the .spyx file a .pyx file (that is a Cython file) and write a simple setup.py file. The only difference between .spyx and .pyx is that you have to write the import statements for the various objects you are using. Next, for the setup.py you can have a look at cython compilation.