File: cython.py

package info (click to toggle)
cython 0.29.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,712 kB
  • sloc: python: 67,282; ansic: 14,240; cpp: 1,316; xml: 1,031; makefile: 372; lisp: 206; sh: 22; sed: 11
file content (24 lines) | stat: -rwxr-xr-x 520 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python

#
#   Cython -- Main Program, generic
#

if __name__ == '__main__':

    import os
    import sys

    # 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