diff options
author | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 |
---|---|---|
committer | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 |
commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/tools/cython/cython.py |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/tools/cython/cython.py')
-rwxr-xr-x | contrib/tools/cython/cython.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/tools/cython/cython.py b/contrib/tools/cython/cython.py new file mode 100755 index 00000000000..f4f1486ecf8 --- /dev/null +++ b/contrib/tools/cython/cython.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python + +# Change content of this file to change uids for cython programs - cython 0.29.27 r0 + +# +# Cython -- Main Program, generic +# + +if __name__ == '__main__': + + import os + import sys + sys.dont_write_bytecode = True + + # Make sure we import the right Cython + cythonpath, _ = os.path.split(os.path.realpath(__file__)) + sys.path.insert(0, cythonpath) + + from Cython.Compiler.Main import main + main(command_line = 1) + +else: + # Void cython.* directives. + from Cython.Shadow import * + ## and bring in the __version__ + from Cython import __version__ + from Cython import load_ipython_extension |