Home | History | Annotate | Download | only in bin
      1 #!/usr/bin/env python
      2 
      3 """
      4 Compile a Python script into an executable that embeds CPython and run it.
      5 Requires CPython to be built as a shared library ('libpythonX.Y').
      6 
      7 Basic usage:
      8 
      9     python cythonrun somefile.py [ARGS]
     10 """
     11 
     12 from Cython.Build.BuildExecutable import build, build_and_run
     13 
     14 if __name__ == '__main__':
     15     import sys
     16     build_and_run(sys.argv[1:])
     17