author | Martin Geisler <mg@lazybytes.net> |
Sun, 26 Sep 2010 21:37:42 +0200 | |
changeset 12501 | 98f21e4d9633 |
parent 12500 | deeef07c6e7d |
child 12502 | 41f2fa72fa82 |
--- 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)