~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Alexander Belchenko
  • Date: 2007-09-14 11:39:28 UTC
  • mto: (2814.7.1 0.91-integration)
  • mto: This revision was merged to the branch mainline in revision 2866.
  • Revision ID: bialix@ukr.net-20070914113928-u2my9p5l1oxdq760
changes suggested by Aaron and Martin

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
        try:
176
176
            build_ext.run(self)
177
177
        except DistutilsPlatformError, e:
178
 
            if sys.platform == 'win32':
179
 
                log.warn(str(e))
180
 
                log.warn("Extensions cannot be compiled, "
181
 
                         "will use pure Python modules instead")
182
 
            else:
183
 
                raise
 
178
            log.warn(str(e))
 
179
            log.warn("Extensions cannot be built, "
 
180
                     "will use the Python versions instead")
184
181
 
185
182
    def build_extension(self, ext):
186
183
        try:
187
184
            build_ext.build_extension(self, ext)
188
185
        except CCompilerError:
189
 
            log.warn("building of '%s' extension failed, will "
190
 
                     "use the Python version instead" % (ext.name,))
 
186
            log.warn("Building of '%s' extension failed, "
 
187
                     "will use the Python version instead" % (ext.name,))
191
188
 
192
189
 
193
190
# Override the build_ext if we have Pyrex available