~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Robert Collins
  • Date: 2009-08-04 04:36:34 UTC
  • mfrom: (4583 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4593.
  • Revision ID: robertc@robertcollins.net-20090804043634-2iu9wpcgs273i97s
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
    def run(self):
149
149
        build.run(self)
150
150
 
151
 
        import generate_docs
 
151
        from tools import generate_docs
152
152
        generate_docs.main(argv=["bzr", "man"])
153
153
 
154
154
 
242
242
    c_name = path + '.c'
243
243
    define_macros = []
244
244
    if sys.platform == 'win32':
245
 
        # pyrex uses the macro WIN32 to detect the platform, even though it should
246
 
        # be using something like _WIN32 or MS_WINDOWS, oh well, we can give it the
247
 
        # right value.
 
245
        # pyrex uses the macro WIN32 to detect the platform, even though it
 
246
        # should be using something like _WIN32 or MS_WINDOWS, oh well, we can
 
247
        # give it the right value.
248
248
        define_macros.append(('WIN32', None))
249
249
    if have_pyrex:
250
250
        source = [pyrex_name]
259
259
        define_macros=define_macros, libraries=libraries))
260
260
 
261
261
 
 
262
add_pyrex_extension('bzrlib._annotator_pyx')
262
263
add_pyrex_extension('bzrlib._bencode_pyx')
263
 
add_pyrex_extension('bzrlib._btree_serializer_c')
 
264
add_pyrex_extension('bzrlib._btree_serializer_pyx')
264
265
add_pyrex_extension('bzrlib._chunks_to_lines_pyx')
265
266
add_pyrex_extension('bzrlib._groupcompress_pyx',
266
267
                    extra_source=['bzrlib/diff-delta.c'])
267
 
add_pyrex_extension('bzrlib._knit_load_data_c')
 
268
add_pyrex_extension('bzrlib._knit_load_data_pyx')
 
269
add_pyrex_extension('bzrlib._known_graph_pyx')
268
270
add_pyrex_extension('bzrlib._rio_pyx')
269
271
if sys.platform == 'win32':
270
 
    add_pyrex_extension('bzrlib._dirstate_helpers_c',
 
272
    add_pyrex_extension('bzrlib._dirstate_helpers_pyx',
271
273
                        libraries=['Ws2_32'])
272
274
    add_pyrex_extension('bzrlib._walkdirs_win32')
273
275
    z_lib = 'zdll'
277
279
        # The code it generates re-uses a "local" pointer and
278
280
        # calls "PY_DECREF" after having set it to NULL. (It mixes PY_XDECREF
279
281
        # which is NULL safe with PY_DECREF which is not.)
280
 
        print 'Cannot build extension "bzrlib._dirstate_helpers_c" using'
 
282
        print 'Cannot build extension "bzrlib._dirstate_helpers_pyx" using'
281
283
        print 'your version of pyrex "%s". Please upgrade your pyrex' % (
282
284
            pyrex_version,)
283
285
        print 'install. For now, the non-compiled (python) version will'
284
286
        print 'be used instead.'
285
287
    else:
286
 
        add_pyrex_extension('bzrlib._dirstate_helpers_c')
 
288
        add_pyrex_extension('bzrlib._dirstate_helpers_pyx')
287
289
    add_pyrex_extension('bzrlib._readdir_pyx')
288
290
    z_lib = 'z'
289
291
add_pyrex_extension('bzrlib._chk_map_pyx', libraries=[z_lib])
290
 
ext_modules.append(Extension('bzrlib._patiencediff_c', ['bzrlib/_patiencediff_c.c']))
 
292
ext_modules.append(Extension('bzrlib._patiencediff_c',
 
293
                             ['bzrlib/_patiencediff_c.c']))
291
294
 
292
295
 
293
296
if unavailable_files:
535
538
                  ImaginaryModule cElementTree elementtree.ElementTree
536
539
                  Crypto.PublicKey._fastmath
537
540
                  medusa medusa.filesys medusa.ftp_server
538
 
                  tools tools.doc_generate
 
541
                  tools
539
542
                  resource validate""".split()
540
543
    dll_excludes = []
541
544
 
654
657
    # ad-hoc for easy_install
655
658
    DATA_FILES = []
656
659
    if not 'bdist_egg' in sys.argv:
657
 
        # generate and install bzr.1 only with plain install, not easy_install one
 
660
        # generate and install bzr.1 only with plain install, not the
 
661
        # easy_install one
658
662
        DATA_FILES = [('man/man1', ['bzr.1'])]
659
663
 
660
664
    # std setup