~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: John Arbash Meinel
  • Date: 2010-09-29 20:56:18 UTC
  • mto: This revision was merged to the branch mainline in revision 5452.
  • Revision ID: john@arbash-meinel.com-20100929205618-qlldxw4ykwt5511n
Move the new NEWS entry to the appropriate section.

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',
70
69
                                        'tests/ssl_certs/server_without_pass.key',
71
70
                                        'tests/ssl_certs/server_with_pass.key',
72
71
                                        'tests/ssl_certs/server.crt'
291
290
        # The code it generates re-uses a "local" pointer and
292
291
        # calls "PY_DECREF" after having set it to NULL. (It mixes PY_XDECREF
293
292
        # which is NULL safe with PY_DECREF which is not.)
294
 
        # <https://bugs.launchpad.net/bzr/+bug/449372>
295
 
        # <https://bugs.launchpad.net/bzr/+bug/276868>
 
293
        # <https://bugs.edge.launchpad.net/bzr/+bug/449372>
 
294
        # <https://bugs.edge.launchpad.net/bzr/+bug/276868>
296
295
        print('Cannot build extension "bzrlib._dirstate_helpers_pyx" using')
297
 
        print('your version of pyrex "%s". Please upgrade your pyrex'
298
 
              % (pyrex_version,))
 
296
        print('your version of pyrex "%s". Please upgrade your pyrex' % (
 
297
            pyrex_version,))
299
298
        print('install. For now, the non-compiled (python) version will')
300
299
        print('be used instead.')
301
300
    else:
689
688
 
690
689
    # MSWSOCK.dll is a system-specific library, which py2exe accidentally pulls
691
690
    # in on Vista.
692
 
    dll_excludes.extend(["MSWSOCK.dll",
693
 
                         "MSVCP60.dll",
694
 
                         "MSVCP90.dll",
695
 
                         "powrprof.dll",
696
 
                         "SHFOLDER.dll"])
 
691
    dll_excludes.extend(["MSWSOCK.dll", "MSVCP60.dll", "powrprof.dll"])
697
692
    options_list = {"py2exe": {"packages": packages + list(additional_packages),
698
693
                               "includes": includes,
699
694
                               "excludes": excludes,
732
727
        # easy_install one
733
728
        DATA_FILES = [('man/man1', ['bzr.1'])]
734
729
 
 
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
 
735
743
    # std setup
736
744
    ARGS = {'scripts': ['bzr'],
737
745
            'data_files': DATA_FILES,