You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
520 B

4 years ago
  1. #!/usr/bin/env python
  2. #
  3. # Cython -- Main Program, generic
  4. #
  5. if __name__ == '__main__':
  6. import os
  7. import sys
  8. # Make sure we import the right Cython
  9. cythonpath, _ = os.path.split(os.path.realpath(__file__))
  10. sys.path.insert(0, cythonpath)
  11. from Cython.Compiler.Main import main
  12. main(command_line = 1)
  13. else:
  14. # Void cython.* directives.
  15. from Cython.Shadow import *
  16. ## and bring in the __version__
  17. from Cython import __version__
  18. from Cython import load_ipython_extension