Created
September 26, 2012 10:33
-
-
Save samuell/3787253 to your computer and use it in GitHub Desktop.
Cythonize python scripts (bash function to be placed in .bashrc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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