Merge lp:~ian-clatworthy/bzr/plugin-packaging-524162 into lp:bzr/2.1

Proposed by Ian Clatworthy
Status: Merged
Approved by: Martin Pool
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~ian-clatworthy/bzr/plugin-packaging-524162
Merge into: lp:bzr/2.1
Diff against target: 47 lines (+9/-3)
2 files modified
NEWS (+2/-0)
setup.py (+7/-3)
To merge this branch: bzr merge lp:~ian-clatworthy/bzr/plugin-packaging-524162
Reviewer Review Type Date Requested Status
Martin Pool Approve
Review via email: mp+20858@code.launchpad.net

Commit message

(igc) include all files not specifically blacklisted when packaging plugins

Description of the change

setup.py is way too aggressive in throwing away files in plugins during the packaging process. As a consequence, toolbars in Explorer are missing, as are numerous other features in that plugin and perhaps others. This fixes the problem.

Note: I've managed to hack around this issue in the latest Windows Installer build scripts so we don't need to release 2.1.1 to get a good Windows installer. Even so, we need to fix the root problem so the relevant hack in the build script can be removed soon.

To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) :
review: Approve
Revision history for this message
Martin Pool (mbp) wrote :
Revision history for this message
Martin Pool (mbp) wrote :

should have fixed bug 524162?

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Yes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS'
--- NEWS 2010-03-05 08:48:31 +0000
+++ NEWS 2010-03-07 13:42:22 +0000
@@ -14,6 +14,8 @@
14Bug Fixes14Bug Fixes
15*********15*********
1616
17* Fix plugin packaging on Windows. (Ian Clatworthy, #524162)
18
17* Fix stub sftp test server to call os.getcwdu().19* Fix stub sftp test server to call os.getcwdu().
18 (Vincent Ladeuil, #526211, #526353)20 (Vincent Ladeuil, #526211, #526353)
1921
2022
=== modified file 'setup.py'
--- setup.py 2010-03-04 17:45:20 +0000
+++ setup.py 2010-03-07 13:42:22 +0000
@@ -37,7 +37,7 @@
37 'version': bzrlib.__version__,37 'version': bzrlib.__version__,
38 'author': 'Canonical Ltd',38 'author': 'Canonical Ltd',
39 'author_email': 'bazaar@lists.canonical.com',39 'author_email': 'bazaar@lists.canonical.com',
40 'url': 'http://www.bazaar-vcs.org/',40 'url': 'http://bazaar.canonical.com/',
41 'description': 'Friendly distributed version control system',41 'description': 'Friendly distributed version control system',
42 'license': 'GNU GPL v2',42 'license': 'GNU GPL v2',
43 'download_url': 'https://launchpad.net/bzr/+download',43 'download_url': 'https://launchpad.net/bzr/+download',
@@ -553,7 +553,7 @@
553 version = version_str,553 version = version_str,
554 description = META_INFO['description'],554 description = META_INFO['description'],
555 author = META_INFO['author'],555 author = META_INFO['author'],
556 copyright = "(c) Canonical Ltd, 2005-2009",556 copyright = "(c) Canonical Ltd, 2005-2010",
557 company_name = "Canonical Ltd.",557 company_name = "Canonical Ltd.",
558 comments = META_INFO['description'],558 comments = META_INFO['description'],
559 )559 )
@@ -624,7 +624,11 @@
624 excludes.extend(["bzrlib.plugins." + d for d in dirs])624 excludes.extend(["bzrlib.plugins." + d for d in dirs])
625 x = []625 x = []
626 for i in files:626 for i in files:
627 if os.path.splitext(i)[1] not in [".py", ".pyd", ".dll", ".mo"]:627 # Throw away files we don't want packaged. Note that plugins may
628 # have data files with all sorts of extensions so we need to
629 # be conservative here about what we ditch.
630 ext = os.path.splitext(i)[1]
631 if ext.endswith('~') or ext in [".pyc", ".swp"]:
628 continue632 continue
629 if i == '__init__.py' and root == 'bzrlib/plugins':633 if i == '__init__.py' and root == 'bzrlib/plugins':
630 continue634 continue

Subscribers

People subscribed via source and target branches