"cython -v" behaves unexpectedly

Bug #188172 reported by gpk
2
Affects Status Importance Assigned to Milestone
Cython
Fix Committed
Undecided
robertwb

Bug Description

Oddly, you need to have cython code around to find out what version of the compiler is installed:

$ cython -v
Cython (http://cython.org) is a compiler for code written in the
Cython language. Cython is based on Pyrex by Greg Ewing.

Usage: cython [options] sourcefile.pyx ...

Options:
  -v, --version Display version number of cython compiler
  -l, --create-listing Write error messages to a listing file
...
$

Now, if you try it with a nonexistant file, you get this:

$ cython -v foo.pyx
Cython version 0.9.6.10b
Traceback (most recent call last):
  File "/users/gpk/local/bin/cython", line 8, in <module>
    main(command_line = 1)
  File "/users/gpk/local/lib/python2.5/site-packages/Cython/Compiler/Main.py", line 322, in main
...
$

One would expect
cython -v
to simply print the version and exit.

Revision history for this message
robertwb (robertwb) wrote :

Thanks. Fortunately, this was an easy fix.

Changed in cython:
assignee: nobody → robertwb
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.