[Pyrex] 0.9.6.3 setup.py error(s)

Robin Becker robin at reportlab.com
Thu Nov 8 13:03:08 CET 2007


Not sure if this has been mentioned before or if I'm doing something stupid, but 
when trying to build on my win32 box with Python 2.5.1 I get this (missing 
paren) error
> C:\Python\devel\Pyrex-0.9.6.3>setup.py install
>   File "C:\Python\devel\Pyrex-0.9.6.3\setup.py", line 11
>     compiler_dir = os.path.join(get_python_lib(prefix=''), 'Pyrex', 'Compiler')
>                ^
> SyntaxError: invalid syntax

and after fixing that I see this (missing import) error
> C:\Python\devel\Pyrex-0.9.6.3>setup.py install
> Traceback (most recent call last):
>   File "C:\Python\devel\Pyrex-0.9.6.3\setup.py", line 9, in <module>
>     execfile(distutils.util.convert_path('Pyrex/Compiler/Version.py'))
> NameError: name 'distutils' is not defined

Things seem to work after I fix the missing import, but I'm puzzled how it was 
possible to release this broken and/or if I have the right package?
-- 
Robin Becker



More information about the Pyrex mailing list