Skip to content

Instantly share code, notes, and snippets.

@codenoid
Created March 9, 2018 00:24
Show Gist options
  • Select an option

  • Save codenoid/f2c32895df2842fd8ad65aacb0891445 to your computer and use it in GitHub Desktop.

Select an option

Save codenoid/f2c32895df2842fd8ad65aacb0891445 to your computer and use it in GitHub Desktop.
COmpile python code to binary file
cython --embed app.py
gcc $CFLAGS -I/usr/include/python2.7 -o app app.c -lpython2.7 -lpthread -lm -lutil -ldl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment