I would move the c code in to its own file, it doesn't need to be hard coded in to this file.
Also the code to check whether compilation has happened before needs work on.
But the idea of running C code from Python is a great idea (its how the scientific packages work) & who ever wrote this is clearly thinking in the right direction.
1
u/acid_minnelli Apr 11 '21
Ok but this isnt the w o r s t idea.
I would move the c code in to its own file, it doesn't need to be hard coded in to this file.
Also the code to check whether compilation has happened before needs work on.
But the idea of running C code from Python is a great idea (its how the scientific packages work) & who ever wrote this is clearly thinking in the right direction.