I need to call gettid from Cython. Accordingly to its man page, I should use the syscall function. I’m running Linux. I can easily get the gettid function number: But I cannot find how to import, or better cimport, syscall. Any ideas? Thanks. Answer You can look up in the cython’s github repository, how those includes are done best, for
Tag: cython
Cython standalone executable on ubuntu
I want my cython program to be standalone executable on linux, not to be imported. After cython –embed i got a c file,now how can i make it executable? Answer I guess you have to compile the .c file you have obtained. Assuming you are using python 3.5 and don’t have to link to other libraries than python you can