~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Martin Pool
  • Date: 2010-01-12 01:44:13 UTC
  • mto: (4634.119.3 2.0)
  • mto: This revision was merged to the branch mainline in revision 4951.
  • Revision ID: mbp@sourcefrog.net-20100112014413-uw90vrssc3trlzmt
Refuse to build with pyrex 0.9.4*

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
    add_pyrex_extension('bzrlib._walkdirs_win32')
279
279
    z_lib = 'zdll'
280
280
else:
281
 
    if have_pyrex and pyrex_version == '0.9.4.1':
 
281
    if have_pyrex and pyrex_version.startswith('0.9.4'):
282
282
        # Pyrex 0.9.4.1 fails to compile this extension correctly
283
283
        # The code it generates re-uses a "local" pointer and
284
284
        # calls "PY_DECREF" after having set it to NULL. (It mixes PY_XDECREF
285
285
        # which is NULL safe with PY_DECREF which is not.)
 
286
        # <https://bugs.edge.launchpad.net/bzr/+bug/449372>
 
287
        # <https://bugs.edge.launchpad.net/bzr/+bug/276868>
286
288
        print 'Cannot build extension "bzrlib._dirstate_helpers_pyx" using'
287
289
        print 'your version of pyrex "%s". Please upgrade your pyrex' % (
288
290
            pyrex_version,)