/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: John Arbash Meinel
  • Date: 2009-12-10 17:16:19 UTC
  • mfrom: (4884 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4889.
  • Revision ID: john@arbash-meinel.com-20091210171619-ehdcxjbl8afhq9g1
Bring in bzr.dev 4884

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
from distutils.extension import Extension
168
168
ext_modules = []
169
169
try:
170
 
    from Pyrex.Distutils import build_ext
 
170
    try:
 
171
        from Pyrex.Distutils import build_ext
 
172
        from Pyrex.Compiler.Version import version as pyrex_version
 
173
    except ImportError:
 
174
        print "No Pyrex, trying Cython..."
 
175
        from Cython.Distutils import build_ext
 
176
        from Cython.Compiler.Version import version as pyrex_version
171
177
except ImportError:
172
178
    have_pyrex = False
173
179
    # try to build the extension from the prior generated source.
180
186
    from distutils.command.build_ext import build_ext
181
187
else:
182
188
    have_pyrex = True
183
 
    from Pyrex.Compiler.Version import version as pyrex_version
184
189
 
185
190
 
186
191
class build_ext_if_possible(build_ext):
265
270
 
266
271
add_pyrex_extension('bzrlib._annotator_pyx')
267
272
add_pyrex_extension('bzrlib._bencode_pyx')
268
 
add_pyrex_extension('bzrlib._btree_serializer_pyx')
269
273
add_pyrex_extension('bzrlib._chunks_to_lines_pyx')
270
274
add_pyrex_extension('bzrlib._groupcompress_pyx',
271
275
                    extra_source=['bzrlib/diff-delta.c'])
295
299
add_pyrex_extension('bzrlib._chk_map_pyx', libraries=[z_lib])
296
300
ext_modules.append(Extension('bzrlib._patiencediff_c',
297
301
                             ['bzrlib/_patiencediff_c.c']))
 
302
add_pyrex_extension('bzrlib._simple_set_pyx')
 
303
ext_modules.append(Extension('bzrlib._static_tuple_c',
 
304
                             ['bzrlib/_static_tuple_c.c']))
 
305
add_pyrex_extension('bzrlib._btree_serializer_pyx')
298
306
 
299
307
 
300
308
if unavailable_files: