Dear all, On OS X Snow Leopard with XCode 3.2.*, I encountered the following issues when using "easy_install" to install the new Cython 0.16:
(a) With Python 2.7 where Cython 0.15.1 had previously been installed, "easy_install" failed with the below error message; looks like it's somehow using the existing Cython for part of the compilation and then failing. After I deleted the existing egg in site-packages it easy_installed fine. (b) With Python 3.2 and no Cython installed in site-packages, it chokes with the following error: haken ~ (8) py3 -m easy_install -U cython Searching for cython Reading http://pypi.python.org/simple/cython/ Couldn't find index page for 'cython' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ Reading http://pypi.python.org/simple/Cython/ Reading http://www.cython.org Reading http://cython.org Best match: Cython 0.16 Downloading http://www.cython.org/release/Cython-0.16.zip Processing Cython-0.16.zip Running Cython-0.16/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ers4by/Cython-0.16/egg-dist-tmp-a6gz6a warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests' warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests' warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests' warning: no files found matching '*.pxd' under directory 'Cython/Utility' warning: no files found matching '*.h' under directory 'Cython/Utility' warning: no files found matching '.cpp' under directory 'Cython/Utility' i686-apple-darwin10-gcc-4.2.1: /tmp/easy_install-ers4by/Cython-0.16/Cython/Runtime/refnanny.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: /tmp/easy_install-ers4by/Cython-0.16/Cython/Runtime/refnanny.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/tmp//ccvgdiS6.out error: Setup script exited with error: command 'gcc' failed with exit status 1 If I download the .zip file and run setup.py by hand it installs fine. Best, Nathan Error when easy_installing with Python 2.7: haken ~ (1) py -m easy_install -U cython Searching for cython Reading http://pypi.python.org/simple/cython/ Reading http://www.cython.org Reading http://cython.org Best match: Cython 0.16 Downloading http://www.cython.org/release/Cython-0.16.zip Processing Cython-0.16.zip Running Cython-0.16/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1x8vwP/Cython-0.16/egg-dist-tmp-dx99kU Compiling module Cython.Plex.Scanners ... Compiling module Cython.Plex.Actions ... Compiling module Cython.Compiler.Lexicon ... Compiling module Cython.Compiler.Scanning ... Compiling module Cython.Compiler.Parsing ... Compiling module Cython.Compiler.Visitor ... Error compiling Cython file: ------------------------------------------------------------ ... raise Errors.CompilerCrash( getattr(last_node, 'pos', None), self.__class__.__name__, u'\n'.join(trace), e, stacktrace) @cython.final def find_handler(self, obj): ^ ------------------------------------------------------------ /tmp/easy_install-1x8vwP/Cython-0.16/Cython/Compiler/Visitor.py:138:4: The final compiler directive is not allowed in function scope Error compiling Cython file: ------------------------------------------------------------ ... def visit(self, obj): return self._visit(obj) @cython.final def _visit(self, obj): ^ ------------------------------------------------------------ /tmp/easy_install-1x8vwP/Cython-0.16/Cython/Compiler/Visitor.py:159:4: The final compiler directive is not allowed in function scope Error compiling Cython file: ------------------------------------------------------------ ... handler_method = self.find_handler(obj) self.dispatch_table[type(obj)] = handler_method return handler_method(obj) @cython.final def _visitchild(self, child, parent, attrname, idx): ^ ------------------------------------------------------------ /tmp/easy_install-1x8vwP/Cython-0.16/Cython/Compiler/Visitor.py:168:4: The final compiler directive is not allowed in function scope Error compiling Cython file: ------------------------------------------------------------ ... def visitchildren(self, parent, attrs=None): return self._visitchildren(parent, attrs) @cython.final def _visitchildren(self, parent, attrs): ^ ------------------------------------------------------------ /tmp/easy_install-1x8vwP/Cython-0.16/Cython/Compiler/Visitor.py:192:4: The final compiler directive is not allowed in function scope Compilation failed _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel