Skip to content
Browse files

Better cython script for windows

Starting Cython from Windows PowerShell? with

cython.py <arguments>

yields a new console window with Cython output, which closes immedeately after Cython finished. To get Cython's output one would always have to write something like

python C:\Python25\Scripts\cython.py <arguments>

Therefore, i wrote a simple batch file that does fairly the same as cython.py and allows you to start cython simply via

cython <arguments>
  • Loading branch information...
1 parent 7293bf0 commit d5a8f0014e61bc34fd5852f86e2f96e4764a619d marcus@bitzl.com committed Aug 2, 2008
Showing with 6 additions and 0 deletions.
  1. +6 −0 bin/cython.bat
View
6 bin/cython.bat
@@ -0,0 +1,6 @@
+@REM Start cython from windows commandline as "cython", not "cython.py".
+@REM This is especially useful for windows power shell, as no extra window
+@REM is used.
+
+@echo OFF
+python -c "from Cython.Compiler.Main import main; main(command_line = 1)" %*

0 comments on commit d5a8f00

Please sign in to comment.
Something went wrong with that request. Please try again.