~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-09-01 08:46:18 UTC
  • mfrom: (6111.1.2 foo)
  • Revision ID: pqm@pqm.ubuntu.com-20110901084618-j9ajgwuc0q3ka4zu
(jelmer) Some compatibility fixes for cython.dev. (Denys Duchier)

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
    from distutils.command.build_ext import build_ext
203
203
else:
204
204
    have_pyrex = True
205
 
    pyrex_version_info = tuple(map(int, pyrex_version.split('.')))
 
205
    import re
 
206
    _version = re.match("^[0-9.]+", pyrex_version).group(0)
 
207
    pyrex_version_info = tuple(map(int, _version.split('.')))
206
208
 
207
209
 
208
210
class build_ext_if_possible(build_ext):