~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Ian Clatworthy
  • Date: 2010-03-03 07:44:56 UTC
  • mto: (4797.33.3 2.1)
  • mto: This revision was merged to the branch mainline in revision 5082.
  • Revision ID: ian.clatworthy@canonical.com-20100303074456-fqjrrk908t8lq6ya
Fix plugin data file packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
612
612
            excludes.extend(["bzrlib.plugins." + d for d in dirs])
613
613
        x = []
614
614
        for i in files:
615
 
            if os.path.splitext(i)[1] not in [".py", ".pyd", ".dll", ".mo"]:
 
615
            # Throw away files we don't want packaged. Note that plugins may
 
616
            # have data files with all sorts of extensions so we need to
 
617
            # be conservative here about what we ditch.
 
618
            ext = os.path.splitext(i)[1]
 
619
            if ext.endswith('~') or ext in [".pyc", ".swp"]:
616
620
                continue
617
621
            if i == '__init__.py' and root == 'bzrlib/plugins':
618
622
                continue