Merge lp:~cr3/checkbox/setup_qt into lp:checkbox

Proposed by Marc Tardif
Status: Merged
Merged at revision: 1777
Proposed branch: lp:~cr3/checkbox/setup_qt
Merge into: lp:checkbox
Diff against target: 106 lines (+36/-28)
2 files modified
debian/changelog (+2/-1)
setup.py (+34/-27)
To merge this branch: bzr merge lp:~cr3/checkbox/setup_qt
Reviewer Review Type Date Requested Status
Marc Tardif (community) Approve
Zygmunt Krynicki (community) Needs Fixing
Review via email: mp+129712@code.launchpad.net

Commit message

Made build dependency on qt4-make optional by cr3.

Description of the change

These changes prevent having other projects like hexr which only need the checkbox core to depend on building the Qt interface. The build process should not be affected for all other intents and purposes. Here is the result of testing the sbuild process:

Architecture: amd64
Build-Space: 46944
Build-Time: 148
Distribution: quantal
Install-Time: 80
Job: ../checkbox_0.14.10.dsc
Package: checkbox
Package-Time: 260
Source-Version: 0.14.10
Space: 46944
Status: successful
Version: 0.14.10
────────────────────────────────────────────────────────────────────────────────
Finished at 20121015-1215
Build needed 00:04:20, 46944k disc space

To post a comment you must log in.
lp:~cr3/checkbox/setup_qt updated
1776. By Marc Tardif

Fixed PEP8 error.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

16 - -- Daniel Manrique <email address hidden> Fri, 12 Oct 2012 10:47:26 -0400
17 + -- Marc Tardif <email address hidden> Fri, 12

I don't think we should be changing that, we'll just add more conflicts

Otherwise ok

review: Needs Fixing
Revision history for this message
Marc Tardif (cr3) wrote :

This is what happened when I merged this setup_qt branch into trunk:

$ bzr merge ../setup_qt
 M debian/changelog
 M setup.py
All changes applied successfully.

No conflict, so I'll just merge myself for the sake of saving everyone some time. Yes, that means I'll be approving myself.

review: Approve
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

While it can merge correctly NOW it will add more problems where the next person has his patch ready but has not seen you change that line. Changelogs are _append_ structures

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-10-15 13:51:28 +0000
+++ debian/changelog 2012-10-15 16:29:20 +0000
@@ -17,6 +17,7 @@
17 * plugins/environment_info.py: Enabling environment to take precedence17 * plugins/environment_info.py: Enabling environment to take precedence
18 over configuration files.18 over configuration files.
19 * setup.py: added support for installing in virtualenv19 * setup.py: added support for installing in virtualenv
20 * setup.py: made build dependency on qt4-make optional
2021
21 [Sean Feole]22 [Sean Feole]
22 * [FEATURE] jobs/optical.txt.in: modified existing automation test23 * [FEATURE] jobs/optical.txt.in: modified existing automation test
@@ -33,7 +34,7 @@
33 all partitions (LP: #1065862)34 all partitions (LP: #1065862)
34 * [FEATURE] jobs/stress.txt.in: Added a wireless hotkey stress test.35 * [FEATURE] jobs/stress.txt.in: Added a wireless hotkey stress test.
3536
36 -- Daniel Manrique <roadmr@ubuntu.com> Fri, 12 Oct 2012 10:47:26 -040037 -- Marc Tardif <marc@ubuntu.com> Fri, 12 Oct 2012 10:47:26 -0400
3738
38checkbox (0.14.6) quantal; urgency=low39checkbox (0.14.6) quantal; urgency=low
3940
4041
=== modified file 'setup.py'
--- setup.py 2012-10-12 18:29:41 +0000
+++ setup.py 2012-10-15 16:29:20 +0000
@@ -42,6 +42,30 @@
42 """Placeholder concrete class for fake icons support."""42 """Placeholder concrete class for fake icons support."""
4343
4444
45DATA_FILES = [
46 ("share/checkbox/", ["backend", "run"]),
47 ("share/checkbox/data/audio/", ["data/audio/*"]),
48 ("share/checkbox/data/documents/", ["data/documents/*"]),
49 ("share/checkbox/data/images/", ["data/images/*.*"]),
50 ("share/checkbox/data/images/oem-config",
51 ["data/images/oem-config/*"]),
52 ("share/checkbox/data/video/", ["data/video/*"]),
53 ("share/checkbox/data/settings/", ["data/settings/*"]),
54 ("share/checkbox/data/websites/", ["data/websites/*"]),
55 ("share/checkbox/data/whitelists/", ["data/whitelists/*"]),
56 ("share/checkbox/examples/", ["examples/*"]),
57 ("share/checkbox/install/", ["install/*"]),
58 ("share/checkbox/patches/", ["patches/*"]),
59 ("share/checkbox/plugins/", ["plugins/*.py"]),
60 ("share/checkbox/report/", ["report/*.*"]),
61 ("share/checkbox/report/images/", ["report/images/*"]),
62 ("share/checkbox/scripts/", ["scripts/*"]),
63 ("share/checkbox/gtk/", ["gtk/checkbox-gtk.ui", "gtk/*.png"]),
64 ("share/dbus-1/services/", ["qt/com.canonical.QtCheckbox.service"]),
65 ("share/apport/package-hooks/", ["apport/source_checkbox.py"]),
66 ("share/apport/general-hooks/", ["apport/checkbox.py"])]
67
68
45def changelog_version(changelog="debian/changelog"):69def changelog_version(changelog="debian/changelog"):
46 version = "dev"70 version = "dev"
47 if posixpath.exists(changelog):71 if posixpath.exists(changelog):
@@ -107,10 +131,15 @@
107 self.sources = extract_sources_from_data_files(data_files)131 self.sources = extract_sources_from_data_files(data_files)
108132
109 def run(self):133 def run(self):
110 errno = subprocess.call(134 # This should always work when building a Debian package.
111 "(cd qt/frontend; qmake-qt4; make)", shell=True)135 if os.path.exists("/usr/bin/qmake-qt4"):
112 if errno:136 errno = subprocess.call(
113 raise SystemExit(errno)137 "(cd qt/frontend; qmake-qt4; make)", shell=True)
138 if errno:
139 raise SystemExit(errno)
140
141 DATA_FILES.append(("lib/checkbox/qt/",
142 ["qt/frontend/checkbox-qt-service"]))
114143
115 super(checkbox_build, self).run()144 super(checkbox_build, self).run()
116145
@@ -230,29 +259,7 @@
230 long_description="""259 long_description="""
231This project provides an extensible interface for system testing.260This project provides an extensible interface for system testing.
232""",261""",
233 data_files=[262 data_files=DATA_FILES,
234 ("lib/checkbox/qt/", ["qt/frontend/checkbox-qt-service"]),
235 ("share/checkbox/", ["backend", "run"]),
236 ("share/checkbox/data/audio/", ["data/audio/*"]),
237 ("share/checkbox/data/documents/", ["data/documents/*"]),
238 ("share/checkbox/data/images/", ["data/images/*.*"]),
239 ("share/checkbox/data/images/oem-config",
240 ["data/images/oem-config/*"]),
241 ("share/checkbox/data/video/", ["data/video/*"]),
242 ("share/checkbox/data/settings/", ["data/settings/*"]),
243 ("share/checkbox/data/websites/", ["data/websites/*"]),
244 ("share/checkbox/data/whitelists/", ["data/whitelists/*"]),
245 ("share/checkbox/examples/", ["examples/*"]),
246 ("share/checkbox/install/", ["install/*"]),
247 ("share/checkbox/patches/", ["patches/*"]),
248 ("share/checkbox/plugins/", ["plugins/*.py"]),
249 ("share/checkbox/report/", ["report/*.*"]),
250 ("share/checkbox/report/images/", ["report/images/*"]),
251 ("share/checkbox/scripts/", ["scripts/*"]),
252 ("share/checkbox/gtk/", ["gtk/checkbox-gtk.ui", "gtk/*.png"]),
253 ("share/dbus-1/services/", ["qt/com.canonical.QtCheckbox.service"]),
254 ("share/apport/package-hooks/", ["apport/source_checkbox.py"]),
255 ("share/apport/general-hooks/", ["apport/checkbox.py"])],
256 scripts=[263 scripts=[
257 "bin/checkbox-cli", "bin/checkbox-gtk", "bin/checkbox-urwid",264 "bin/checkbox-cli", "bin/checkbox-gtk", "bin/checkbox-urwid",
258 "bin/checkbox-qt"],265 "bin/checkbox-qt"],

Subscribers

People subscribed via source and target branches