Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
marcus@bitzl.com committed Aug 3, 2008
1 parent 7293bf0 commit d5a8f00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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.