[Pyrex] trouble with Pyrex 0.9.1.1 setup.py

Phillip J. Eby pje at telecommunity.com
Tue May 4 19:18:40 CEST 2004


At 01:36 PM 5/1/04 +0200, Jiba wrote:
>In order to install Pyrex 0.9.1.1 fine, i've done the following
>modification to the setup.py file :
>
>  - add "import sys" at the beginning

I needed to do this on 0.9.2 as well.


>  - add "linux2" in the list of UNIX-like platform (if sys.platform in
>("unix", "darwin", "linux2"):)

It might be simpler to check for 'os.name=="posix"', since that will also 
work properly with cygwin and any other platform that uses Posix paths.

Of course, you then need 'import os'.  :)





More information about the Pyrex mailing list