--- a/setup.py
+++ b/setup.py
@@ -573,7 +573,7 @@
             if failed:
                 print 'Failed dependencies: %s' % (', '.join(failed))
                 print 'Use the --nodepcheck option to ignore dependencies.'
-                exit(0)
+                exit(1)
         distutils.command.install.install.run(self, *args, **kwargs)
 
 def main(options):
