Rev 3929: Change the warning from setup.py to make it a bit more obvious how to install in lp:///~jameinel/bzr/bug_295826

John Arbash Meinel john at arbash-meinel.com
Thu Jan 8 20:44:19 GMT 2009


At lp:///~jameinel/bzr/bug_295826

------------------------------------------------------------
revno: 3929
revision-id: john at arbash-meinel.com-20090108204358-w84sffsgefp5vyp0
parent: pqm at pqm.ubuntu.com-20090108161207-d95v7ouel5ibahh0
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: bug_295826
timestamp: Thu 2009-01-08 14:43:58 -0600
message:
  Change the warning from setup.py to make it a bit more obvious how to install
  without extensions.
-------------- next part --------------
=== modified file 'setup.py'
--- a/setup.py	2008-12-11 02:18:59 +0000
+++ b/setup.py	2009-01-08 20:43:58 +0000
@@ -197,8 +197,8 @@
         except DistutilsPlatformError, e:
             if not self.allow_python_fallback:
                 log.warn('\n  Cannot build extensions.\n'
-                         '  Use --allow-python-fallback to use slower'
-                         ' python implementations instead.\n')
+                         '  Use "build_ext --allow-python-fallback" to use'
+                         ' slower python implementations instead.\n')
                 raise
             log.warn(str(e))
             log.warn('\n  Extensions cannot be built.\n'
@@ -209,9 +209,9 @@
             build_ext.build_extension(self, ext)
         except CCompilerError:
             if not self.allow_python_fallback:
-                log.warn('\n  Failed to build "%s".\n'
-                         '  Use --allow-python-fallback to use slower'
-                         ' python implementations instead.\n'
+                log.warn('\n  Cannot build extensions.\n'
+                         '  Use "build_ext --allow-python-fallback" to use'
+                         ' slower python implementations instead.\n')
                          % (ext.name,))
                 raise
             log.warn('\n  Building of "%s" extension failed.\n'



More information about the bazaar-commits mailing list