Cython 0.15 reports version 0.14.1 under Python 2.7 FreeBSD 8.2

31 views
Skip to first unread message

AnilG

unread,
Aug 13, 2011, 1:53:46 AM8/13/11
to cython-users
I installed Cython is 0.15 (released 2011-08-05) on FreeBSD 8.2.
Under Python 2.7 Cython reports version 0.14.1 and version 0.15 under
Python 3.1.3.
It looks like my gevent Python 2.7 build breaks under Cython 0.14.1.
How do I get Cython 0.15 on FreeBSD 8.2 under Python 2.7?
I even installed Cython twice, once under Python 3 and once under
Python 2.

# which cython
/usr/local/bin/cython

# cython --version
Cython version 0.14.1

# python -V
Python 2.7.1

# cp /usr/local/bin/python3.1 /usr/local/bin/python

# python -V
Python 3.1.3

# cython --version
Cython version 0.15

# cp /usr/local/bin/python2.7 /usr/local/bin/python

# cython --version
Cython version 0.14.1

Robert Bradshaw

unread,
Aug 14, 2011, 1:41:04 AM8/14/11
to cython...@googlegroups.com
It looks like it didn't actually install. With all this copying of
/usr/local/bin/python, are you sure you installed it into the right
one? What happens when you run

cd /path/to/cython
/usr/local/bin/python2.7 setup.py install

AnilG

unread,
Aug 14, 2011, 7:05:16 AM8/14/11
to cython-users
> It looks like it didn't actually install. With all this copying of
> /usr/local/bin/python, are you sure you installed it into the right
> one? What happens when you run
> cd /path/to/cython
> /usr/local/bin/python2.7 setup.py install

Thanks for directing me Robert.
Actually that is functionally equivalent to what I did,
and I tried anyway, with the same result,
but your question prompted me to look further.

The build actually said:
Writing /usr/local/lib/python2.7/site-packages/Cython-0.15-py2.7.egg-
info

So I looked in site-packages for 2.7 and saw:

# ls -1 | grep cython
Cython
Cython-0.14.1-py2.7-freebsd-8.2-RELEASE-i386.egg
Cython-0.15-py2.7.egg-info
Cython-0.15rc0-py2.7.egg-info
cython.py
cython.pyc

Evidently it's finding the old build somehow.
I deleted the Cython-0.14.1-py2.7-freebsd-8.2-RELEASE-i386.egg
and Cython now reports 0.15 all the time.

Please accept my apologies. This was a build problem peculiar to me.
Thanks very much for your response.

Craig Macomber

unread,
Sep 19, 2011, 9:04:59 PM9/19/11
to cython...@googlegroups.com
I had the same issue on Mac with python 2.6. 'which cython' pointed to
the new binary just created by the install, but cython -V reported
0.14.1 until I deleted all cython related files from my site packages
and reinstalled. I thought I had upgraded to 0.15 weeks ago, but
apparently not of my mac.
Reply all
Reply to author
Forward
0 new messages