~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Joe Julian
  • Date: 2010-01-10 02:25:31 UTC
  • mto: (4634.119.7 2.0)
  • mto: This revision was merged to the branch mainline in revision 4959.
  • Revision ID: joe@julianfamily.org-20100110022531-wqk61rsagz8xsiga
Added MANIFEST.in to allow bdist_rpm to have all the required include files and tools. bdist_rpm will still fail to build correctly on some distributions due to a disttools bug http://bugs.python.org/issue644744

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    'url':          'http://www.bazaar-vcs.org/',
41
41
    'description':  'Friendly distributed version control system',
42
42
    'license':      'GNU GPL v2',
43
 
    'download_url': 'http://bazaar-vcs.org/Download',
 
43
    'download_url': 'https://launchpad.net/bzr/+download',
44
44
    'long_description': get_long_description(),
45
45
    'classifiers': [
46
46
        'Development Status :: 6 - Mature',
65
65
            'package_data': {'bzrlib': ['doc/api/*.txt',
66
66
                                        'tests/test_patches_data/*',
67
67
                                        'help_topics/en/*.txt',
 
68
                                        'tests/ssl_certs/server_without_pass.key',
 
69
                                        'tests/ssl_certs/server_with_pass.key',
 
70
                                        'tests/ssl_certs/server.crt'
68
71
                                       ]},
69
72
           }
70
73
 
324
327
    # Ensure tbzrlib itself is on sys.path
325
328
    sys.path.append(tbzr_root)
326
329
 
327
 
    # Ensure our COM "entry-point" is on sys.path
328
 
    sys.path.append(os.path.join(tbzr_root, "shellext", "python"))
329
 
 
330
330
    packages.append("tbzrlib")
331
331
 
332
332
    # collect up our icons.
354
354
    excludes.extend("""pywin pywin.dialogs pywin.dialogs.list
355
355
                       win32ui crawler.Crawler""".split())
356
356
 
357
 
    # NOTE: We still create a DLL version of the Python implemented shell
358
 
    # extension for testing purposes - but it is *not* registered by
359
 
    # default - our C++ one is instead.  To discourage people thinking
360
 
    # this DLL is still necessary, its called 'tbzr_old.dll'
361
 
    tbzr = dict(
362
 
        modules=["tbzr"],
363
 
        create_exe = False, # we only want a .dll
364
 
        dest_base = 'tbzr_old',
365
 
    )
366
 
    com_targets.append(tbzr)
367
 
 
368
357
    # tbzrcache executables - a "console" version for debugging and a
369
358
    # GUI version that is generally used.
370
359
    tbzrcache = dict(
395
384
    console_targets.append(tracer)
396
385
 
397
386
    # The C++ implemented shell extensions.
398
 
    dist_dir = os.path.join(tbzr_root, "shellext", "cpp", "tbzrshellext",
399
 
                            "build", "dist")
 
387
    dist_dir = os.path.join(tbzr_root, "shellext", "build")
400
388
    data_files.append(('', [os.path.join(dist_dir, 'tbzrshellext_x86.dll')]))
401
389
    data_files.append(('', [os.path.join(dist_dir, 'tbzrshellext_x64.dll')]))
402
390
 
408
396
    includes.append('sip') # extension module required for Qt.
409
397
    packages.append('pygments') # colorizer for qbzr
410
398
    packages.append('docutils') # html formatting
 
399
    includes.append('win32event')  # for qsubprocess stuff
411
400
    # but we can avoid many Qt4 Dlls.
412
401
    dll_excludes.extend(
413
402
        """QtAssistantClient4.dll QtCLucene4.dll QtDesigner4.dll
541
530
                                     version = version_str,
542
531
                                     description = META_INFO['description'],
543
532
                                     author = META_INFO['author'],
544
 
                                     copyright = "(c) Canonical Ltd, 2005-2007",
 
533
                                     copyright = "(c) Canonical Ltd, 2005-2009",
545
534
                                     company_name = "Canonical Ltd.",
546
535
                                     comments = META_INFO['description'],
547
536
                                    )
632
621
                       'tools/win32/bzr_postinstall.py',
633
622
                       ]
634
623
    gui_targets = []
635
 
    com_targets = []
636
624
    data_files = topics_files + plugins_files
637
625
 
638
626
    if 'qbzr' in plugins:
683
671
    setup(options=options_list,
684
672
          console=console_targets,
685
673
          windows=gui_targets,
686
 
          com_server=com_targets,
687
674
          zipfile='lib/library.zip',
688
675
          data_files=data_files,
689
676
          cmdclass={'install_data': install_data_with_bytecompile},