~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Ross Lagerwall
  • Date: 2012-08-07 06:32:51 UTC
  • mto: (6437.63.5 2.5)
  • mto: This revision was merged to the branch mainline in revision 6558.
  • Revision ID: rosslagerwall@gmail.com-20120807063251-x9p03ghg2ws8oqjc
Add bzrlib/locale to .bzrignore

bzrlib/locale is generated with ./setup.py build_mo which is in turn called
by ./setup.py build

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
from distutils import log
107
107
from distutils.core import setup
108
 
from distutils.version import LooseVersion
109
108
from distutils.command.install_scripts import install_scripts
110
109
from distutils.command.install_data import install_data
111
110
from distutils.command.build import build
203
202
    from distutils.command.build_ext import build_ext
204
203
else:
205
204
    have_pyrex = True
206
 
    pyrex_version_info = LooseVersion(pyrex_version)
 
205
    pyrex_version_info = tuple(map(int, pyrex_version.rstrip("+").split('.')))
207
206
 
208
207
 
209
208
class build_ext_if_possible(build_ext):
300
299
                        libraries=['Ws2_32'])
301
300
    add_pyrex_extension('bzrlib._walkdirs_win32')
302
301
else:
303
 
    if have_pyrex and pyrex_version_info == LooseVersion("0.9.4.1"):
 
302
    if have_pyrex and pyrex_version_info[:3] == (0,9,4):
304
303
        # Pyrex 0.9.4.1 fails to compile this extension correctly
305
304
        # The code it generates re-uses a "local" pointer and
306
305
        # calls "PY_DECREF" after having set it to NULL. (It mixes PY_XDECREF
318
317
add_pyrex_extension('bzrlib._chk_map_pyx')
319
318
ext_modules.append(Extension('bzrlib._patiencediff_c',
320
319
                             ['bzrlib/_patiencediff_c.c']))
321
 
if have_pyrex and pyrex_version_info < LooseVersion("0.9.6.3"):
 
320
if have_pyrex and pyrex_version_info < (0, 9, 6, 3):
322
321
    print("")
323
322
    print('Your Pyrex/Cython version %s is too old to build the simple_set' % (
324
323
        pyrex_version))