blob: f09e1d58d4f9e03c68759c9a34953a4746f55415 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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]
"""
from Cython.Build.BuildExecutable import build_and_run
if __name__ == '__main__':
import sys
build_and_run(sys.argv[1:])
|