diff -r cc9e5ead50d1 setup.py --- a/setup.py Mon Nov 17 14:35:05 2008 +0100 +++ b/setup.py Mon Nov 17 23:31:35 2008 -0300 @@ -29,6 +29,13 @@ sys.argv.remove("--no-cython-compile") except ValueError: try: + from distutils.command.build_ext import build_ext as build_ext_orig + class build_ext(build_ext_orig): + def build_extension(self, ext, *args, **kargs): + try: + build_ext_orig.build_extension(self, ext, *args, **kargs) + except StandardError: + print("Compilation of '%s' failed" % ext.sources[0]) from Cython.Compiler.Main import compile source_root = os.path.dirname(__file__) compiled_modules = ["Cython.Plex.Scanners", @@ -48,6 +55,7 @@ print("Compilation failed") if extensions: setup_args['ext_modules'] = extensions + setup_args['cmdclass'] = {"build_ext" : build_ext} except Exception: print("ERROR: %s" % sys.exc_info()[1]) print("Extension module compilation failed, using plain Python implementation")