avoid redundant exception output in Python 3 build
authorStefan Behnel <scoder@users.berlios.de>
Thu, 28 Apr 2011 18:37:31 +0000 (20:37 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 28 Apr 2011 18:37:31 +0000 (20:37 +0200)
setup.py

index cb4f996dd241e9fb0d60e1f2702a9e105a82ec4e..782dea25edf0bd376c7809fceb1e68fe6b30dec1 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -249,7 +249,11 @@ except ValueError:
 
 try:
     sys.argv.remove("--no-cython-compile")
 
 try:
     sys.argv.remove("--no-cython-compile")
+    compile_cython_itself = False
 except ValueError:
 except ValueError:
+    compile_cython_itself = True
+
+if compile_cython_itself:
     compile_cython_modules(cython_profile, cython_compile_more, cython_with_refnanny)
 
 setup_args.update(setuptools_extra_args)
     compile_cython_modules(cython_profile, cython_compile_more, cython_with_refnanny)
 
 setup_args.update(setuptools_extra_args)