diff options
author | marcus@bitzl.com <none@none> | 2008-08-02 22:44:42 -0700 |
---|---|---|
committer | marcus@bitzl.com <none@none> | 2008-08-02 22:44:42 -0700 |
commit | d5a8f0014e61bc34fd5852f86e2f96e4764a619d (patch) | |
tree | fdb2bd6fb3557eb63ad039089399583cb09af2ce | |
parent | 7293bf0ee62b20054a1a5dc5f9e2c0795fd35168 (diff) | |
download | cython-d5a8f0014e61bc34fd5852f86e2f96e4764a619d.tar.gz |
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>
-rw-r--r-- | bin/cython.bat | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/cython.bat b/bin/cython.bat new file mode 100644 index 000000000..13690f08a --- /dev/null +++ b/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)" %*
|