cython-devel
changeset 907:e6bad90a921e
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>
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>
| author | marcus@bitzl.com |
|---|---|
| date | Sat Aug 02 22:44:42 2008 -0700 (3 years ago) |
| parents | def99eb4f83c |
| children | 7a1defb8455d6b4d1103881e |
| files | bin/cython.bat |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/bin/cython.bat Sat Aug 02 22:44:42 2008 -0700
1.3 @@ -0,0 +1,6 @@
1.4 +@REM Start cython from windows commandline as "cython", not "cython.py".
1.5 +@REM This is especially useful for windows power shell, as no extra window
1.6 +@REM is used.
1.7 +
1.8 +@echo OFF
1.9 +python -c "from Cython.Compiler.Main import main; main(command_line = 1)" %*
