Skip to content

Instantly share code, notes, and snippets.

@samuell
Created September 26, 2012 10:33
Show Gist options
  • Select an option

  • Save samuell/3787253 to your computer and use it in GitHub Desktop.

Select an option

Save samuell/3787253 to your computer and use it in GitHub Desktop.
Cythonize python scripts (bash function to be placed in .bashrc)
cythonize() {
cython --embed $1.py
gcc -I/usr/include/python2.7 -o $1 $1.c -lpython2.7
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment