Compile Python app with Cython

  1. Make sure Cyton and GCC are installed on your system. (Use apt-get install)
  2. Rename the 'main.py' file to 'main.pyx'
  3. Do cyton main.pyx –embed'
  4. Do 'gcc -Os -I /usr/include/python3.5m -o main main.c -lpython3.5m -lpthread -lm -lutil -ldl'
  5. An executable has been compiled and is ready for use. To run type './main'