~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-01-11 15:45:55 UTC
  • mfrom: (5588.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20110111154555-xmu386vs0qoigyhl
(vila) Document the packaging helper scripts. (Max Bowsher)

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
            'package_data': {'bzrlib': ['doc/api/*.txt',
67
67
                                        'tests/test_patches_data/*',
68
68
                                        'help_topics/en/*.txt',
 
69
                                        'tests/ssl_certs/ca.crt',
69
70
                                        'tests/ssl_certs/server_without_pass.key',
70
71
                                        'tests/ssl_certs/server_with_pass.key',
71
72
                                        'tests/ssl_certs/server.crt'
290
291
        # The code it generates re-uses a "local" pointer and
291
292
        # calls "PY_DECREF" after having set it to NULL. (It mixes PY_XDECREF
292
293
        # which is NULL safe with PY_DECREF which is not.)
293
 
        # <https://bugs.edge.launchpad.net/bzr/+bug/449372>
294
 
        # <https://bugs.edge.launchpad.net/bzr/+bug/276868>
 
294
        # <https://bugs.launchpad.net/bzr/+bug/449372>
 
295
        # <https://bugs.launchpad.net/bzr/+bug/276868>
295
296
        print('Cannot build extension "bzrlib._dirstate_helpers_pyx" using')
296
 
        print('your version of pyrex "%s". Please upgrade your pyrex' % (
297
 
            pyrex_version,))
 
297
        print('your version of pyrex "%s". Please upgrade your pyrex'
 
298
              % (pyrex_version,))
298
299
        print('install. For now, the non-compiled (python) version will')
299
300
        print('be used instead.')
300
301
    else:
688
689
 
689
690
    # MSWSOCK.dll is a system-specific library, which py2exe accidentally pulls
690
691
    # in on Vista.
691
 
    dll_excludes.extend(["MSWSOCK.dll", "MSVCP60.dll", "powrprof.dll"])
 
692
    dll_excludes.extend(["MSWSOCK.dll",
 
693
                         "MSVCP60.dll",
 
694
                         "MSVCP90.dll",
 
695
                         "powrprof.dll",
 
696
                         "SHFOLDER.dll"])
692
697
    options_list = {"py2exe": {"packages": packages + list(additional_packages),
693
698
                               "includes": includes,
694
699
                               "excludes": excludes,
727
732
        # easy_install one
728
733
        DATA_FILES = [('man/man1', ['bzr.1'])]
729
734
 
730
 
    if sys.platform != 'win32':
731
 
        # see https://wiki.kubuntu.org/Apport/DeveloperHowTo
732
 
        #
733
 
        # checking the paths and hardcoding the check for root is a bit gross,
734
 
        # but I don't see a cleaner way to find out the locations in a way
735
 
        # that's going to align with the hardcoded paths in apport.
736
 
        if os.geteuid() == 0:
737
 
            DATA_FILES += [
738
 
                ('/usr/share/apport/package-hooks',
739
 
                    ['apport/source_bzr.py']),
740
 
                ('/etc/apport/crashdb.conf.d/',
741
 
                    ['apport/bzr-crashdb.conf']),]
742
 
 
743
735
    # std setup
744
736
    ARGS = {'scripts': ['bzr'],
745
737
            'data_files': DATA_FILES,