Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/cython/src/cython.py

Issue 385073004: Adding cython v0.20.2 in third-party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference cython dev list thread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/cython/src/cygdb.py ('k') | third_party/cython/src/pylintrc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cython/src/cython.py
diff --git a/third_party/cython/src/cython.py b/third_party/cython/src/cython.py
new file mode 100755
index 0000000000000000000000000000000000000000..bcc2d8667ad37190f39010c9ed280d3965a44a2f
--- /dev/null
+++ b/third_party/cython/src/cython.py
@@ -0,0 +1,23 @@
+#!/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__
« no previous file with comments | « third_party/cython/src/cygdb.py ('k') | third_party/cython/src/pylintrc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698