/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import copy
13
13
import glob
14
14
 
15
 
if sys.version_info < (2, 6):
16
 
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.6+\n")
 
15
if sys.version_info < (2, 7):
 
16
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.7+\n")
17
17
    sys.exit(1)
18
18
 
19
19
# NOTE: The directory containing setup.py, whether run by 'python setup.py' or
134
134
                f = file(batch_path, "w")
135
135
                f.write(batch_str)
136
136
                f.close()
137
 
                print("Created: %s" % batch_path)
 
137
                print(("Created: %s" % batch_path))
138
138
            except Exception:
139
139
                e = sys.exc_info()[1]
140
 
                print("ERROR: Unable to create %s: %s" % (batch_path, e))
 
140
                print(("ERROR: Unable to create %s: %s" % (batch_path, e)))
141
141
 
142
142
    def _quoted_path(self, path):
143
143
        if ' ' in path:
309
309
        # <https://bugs.launchpad.net/bzr/+bug/449372>
310
310
        # <https://bugs.launchpad.net/bzr/+bug/276868>
311
311
        print('Cannot build extension "breezy._dirstate_helpers_pyx" using')
312
 
        print('your version of pyrex "%s". Please upgrade your pyrex'
313
 
              % (pyrex_version,))
 
312
        print(('your version of pyrex "%s". Please upgrade your pyrex'
 
313
              % (pyrex_version,)))
314
314
        print('install. For now, the non-compiled (python) version will')
315
315
        print('be used instead.')
316
316
    else:
321
321
                             ['breezy/_patiencediff_c.c']))
322
322
if have_pyrex and pyrex_version_info < LooseVersion("0.9.6.3"):
323
323
    print("")
324
 
    print('Your Pyrex/Cython version %s is too old to build the simple_set' % (
325
 
        pyrex_version))
 
324
    print(('Your Pyrex/Cython version %s is too old to build the simple_set' % (
 
325
        pyrex_version)))
326
326
    print('and static_tuple extensions.')
327
327
    print('Please upgrade to at least Pyrex 0.9.6.3')
328
328
    print("")
338
338
 
339
339
if unavailable_files:
340
340
    print('C extension(s) not found:')
341
 
    print('   %s' % ('\n  '.join(unavailable_files),))
 
341
    print(('   %s' % ('\n  '.join(unavailable_files),)))
342
342
    print('The python versions will be used instead.')
343
343
    print("")
344
344