~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Robert Collins
  • Date: 2010-06-21 21:58:49 UTC
  • mto: This revision was merged to the branch mainline in revision 5314.
  • Revision ID: robertc@robertcollins.net-20100621215849-xiby3pyuyf50ou4t
Do not print tuples from setup.py in Python 2.x.

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
except ImportError:
179
179
    have_pyrex = False
180
180
    # try to build the extension from the prior generated source.
181
 
    print()
 
181
    print("")
182
182
    print("The python package 'Pyrex' is not available."
183
183
          " If the .c files are available,")
184
184
    print("they will be built,"
185
185
          " but modifying the .pyx files will not rebuild them.")
186
 
    print()
 
186
    print("")
187
187
    from distutils.command.build_ext import build_ext
188
188
else:
189
189
    have_pyrex = True
303
303
ext_modules.append(Extension('bzrlib._patiencediff_c',
304
304
                             ['bzrlib/_patiencediff_c.c']))
305
305
if have_pyrex and pyrex_version_info < (0, 9, 6, 3):
306
 
    print()
 
306
    print("")
307
307
    print('Your Pyrex/Cython version %s is too old to build the simple_set' % (
308
308
        pyrex_version))
309
309
    print('and static_tuple extensions.')
310
310
    print('Please upgrade to at least Pyrex 0.9.6.3')
311
 
    print()
 
311
    print("")
312
312
    # TODO: Should this be a fatal error?
313
313
else:
314
314
    # We only need 0.9.6.3 to build _simple_set_pyx, but static_tuple depends
323
323
    print('C extension(s) not found:')
324
324
    print('   %s' % ('\n  '.join(unavailable_files),))
325
325
    print('The python versions will be used instead.')
326
 
    print()
 
326
    print("")
327
327
 
328
328
 
329
329
def get_tbzr_py2exe_info(includes, excludes, packages, console_targets,