Skip to content

Instantly share code, notes, and snippets.

@hangst
Last active July 8, 2020 15:41
Show Gist options
  • Save hangst/cc951f14aaab7deb415d01e9cca9557c to your computer and use it in GitHub Desktop.
Save hangst/cc951f14aaab7deb415d01e9cca9557c to your computer and use it in GitHub Desktop.
Compile executable Python
cython3 --embed src.py --output-file dst.c
g++ dst.c -I/usr/include/python -L/usr/lib/x86_64-linux-gnu -lpython
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment