~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: John Arbash Meinel
  • Date: 2009-01-08 20:43:58 UTC
  • mto: This revision was merged to the branch mainline in revision 3984.
  • Revision ID: john@arbash-meinel.com-20090108204358-w84sffsgefp5vyp0
Change the warning from setup.py to make it a bit more obvious how to install
without extensions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
        except DistutilsPlatformError, e:
198
198
            if not self.allow_python_fallback:
199
199
                log.warn('\n  Cannot build extensions.\n'
200
 
                         '  Use --allow-python-fallback to use slower'
201
 
                         ' python implementations instead.\n')
 
200
                         '  Use "build_ext --allow-python-fallback" to use'
 
201
                         ' slower python implementations instead.\n')
202
202
                raise
203
203
            log.warn(str(e))
204
204
            log.warn('\n  Extensions cannot be built.\n'
209
209
            build_ext.build_extension(self, ext)
210
210
        except CCompilerError:
211
211
            if not self.allow_python_fallback:
212
 
                log.warn('\n  Failed to build "%s".\n'
213
 
                         '  Use --allow-python-fallback to use slower'
214
 
                         ' python implementations instead.\n'
 
212
                log.warn('\n  Cannot build extensions.\n'
 
213
                         '  Use "build_ext --allow-python-fallback" to use'
 
214
                         ' slower python implementations instead.\n')
215
215
                         % (ext.name,))
216
216
                raise
217
217
            log.warn('\n  Building of "%s" extension failed.\n'