cython.py 641 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env python
  2. # Change content of this file to change uids for cython programs - cython 0.29.37 r0
  3. #
  4. # Cython -- Main Program, generic
  5. #
  6. if __name__ == '__main__':
  7. import os
  8. import sys
  9. sys.dont_write_bytecode = True
  10. # Make sure we import the right Cython
  11. cythonpath, _ = os.path.split(os.path.realpath(__file__))
  12. sys.path.insert(0, cythonpath)
  13. from Cython.Compiler.Main import main
  14. main(command_line = 1)
  15. else:
  16. # Void cython.* directives.
  17. from Cython.Shadow import *
  18. ## and bring in the __version__
  19. from Cython import __version__
  20. from Cython import load_ipython_extension