changeset 12501:98f21e4d9633

setup: slight simplification
author Martin Geisler <mg@lazybytes.net>
date Sun, 26 Sep 2010 21:37:42 +0200
parents deeef07c6e7d
children 41f2fa72fa82
files setup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Sat Sep 25 19:47:45 2010 -0500
+++ b/setup.py	Sun Sep 26 21:37:42 2010 +0200
@@ -229,7 +229,7 @@
         try:
             build_ext.build_extension(self, ext)
         except CCompilerError:
-            if not hasattr(ext, 'optional') or not ext.optional:
+            if not getattr(ext, 'optional', False):
                 raise
             log.warn("Failed to build optional extension '%s' (skipping)",
                      ext.name)