cythonrun 366 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/usr/bin/env python

"""
Compile a Python script into an executable that embeds CPython and run it.
Requires CPython to be built as a shared library ('libpythonX.Y').

Basic usage:

    python cythonrun somefile.py [ARGS]
"""

12
from Cython.Build.BuildExecutable import build, build_and_run
13 14

if __name__ == '__main__':
15 16
    import sys
    build_and_run(sys.argv[1:])