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

Proposed by Marc Tardif
Status: Merged
Merged at revision: 1766
Proposed branch: lp:~cr3/checkbox/setup_virtualenv
Merge into: lp:checkbox
Diff against target: 113 lines (+18/-21) (has conflicts)
3 files modified
debian/changelog (+7/-0)
debian/rules (+0/-1)
setup.py (+11/-20)
Text conflict in debian/changelog
To merge this branch: bzr merge lp:~cr3/checkbox/setup_virtualenv
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Marc Tardif (community) Needs Resubmitting
Review via email: mp+129293@code.launchpad.net

Commit message

Merged support for installing in virtualenv by cr3.

Description of the change

Added support for installing in virtualenv.

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

Looks nice! I'll just build the package to ensure we don't break anything and then merge. I'll do it manually, as I don't know if Tarmac is lurking waiting for my approval, or off on vacation on a spanish beach :D

review: Approve
Revision history for this message
Daniel Manrique (roadmr) wrote :

Sorry :(

sbuild fails with this error:

xgettext: error while opening "./../qt/frontend/ui_qtfront.h" for reading: No such file or directory
ERROR: xgettext failed to generate PO template file. Please consult
       error message above if there is any.
error: command 'intltool-update' failed with exit status 1
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Apparently the qt build process is not running properly, thus the UI .h file is not being generated, and I suspect the qt binaries aren't either.

From the branch I did:

bzr-buildpackage -S

then to build the package:

sbuild -A --arch=amd64 -d quantal checkbox_0.14.10.dsc

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

That's weird, works for me:

$ bzr-buildpackage -S
...
dpkg-source: info: using source format `3.0 (native)'
dpkg-source: info: building checkbox in checkbox_0.14.10.tar.gz
dpkg-source: info: building checkbox in checkbox_0.14.10.dsc
 dpkg-genchanges -S >../checkbox_0.14.10_source.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build checkbox-0.14.10
dpkg-buildpackage: source only upload: Debian-native package
$ sbuild -A --arch=amd64 -d quantal ../checkbox_0.14.10.dsc
...
Architecture: amd64
Build-Space: 46504
Build-Time: 49
Distribution: quantal
Install-Time: 170
Job: ../checkbox_0.14.10.dsc
Package: checkbox
Package-Time: 527
Source-Version: 0.14.10
Space: 46504
Status: successful
Version: 0.14.10
────────────────────────────────────────────────────────────────────────────────
Finished at 20121012-1006
Build needed 00:08:47, 46504k disc space

I'll look into it some more...

Revision history for this message
Daniel Manrique (roadmr) wrote :

This is my buildlog. I also just updated my chroots to have latest versions.

http://paste.ubuntu.com/1275030/

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

This is my buildlog, build_i18n still works. I don't get it:

http://pastebin.ubuntu.com/1275118/

lp:~cr3/checkbox/setup_virtualenv updated
1766. By Marc Tardif

Moved building of frontend before building of i18n files.

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

Fixed and now builds in Launchpad:

https://launchpad.net/~cr3/+archive/ppa/+packages

review: Needs Resubmitting
Revision history for this message
Daniel Manrique (roadmr) wrote :

Awesome, merging then. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-10-12 15:08:45 +0000
3+++ debian/changelog 2012-10-12 18:50:25 +0000
4@@ -2,6 +2,7 @@
5
6 * Increased version number after final Ubuntu Quantal release.
7
8+<<<<<<< TREE
9 [Brendan Donegan]
10 * jobs/suspend.txt.in - make sure FWTS logs end with .log so file names
11 don't get tampered with (LP: #1065932)
12@@ -20,6 +21,12 @@
13 appear in the checkbox UI (LP: #1064189)
14
15 -- Daniel Manrique <roadmr@ubuntu.com> Fri, 12 Oct 2012 10:47:26 -0400
16+=======
17+ [Marc Tardif]
18+ * setup.py: Added support for installing in virtualenv.
19+
20+ -- Daniel Manrique <roadmr@ubuntu.com> Wed, 10 Oct 2012 09:45:08 -0400
21+>>>>>>> MERGE-SOURCE
22
23 checkbox (0.14.6) quantal; urgency=low
24
25
26=== modified file 'debian/rules'
27--- debian/rules 2012-07-13 03:09:52 +0000
28+++ debian/rules 2012-10-12 18:50:25 +0000
29@@ -4,7 +4,6 @@
30 dh "$@" --with python2,python3,translations
31
32 override_dh_auto_build:
33- (cd qt/frontend; qmake-qt4; make)
34 set -ex; for python in $(shell py3versions -r); do \
35 $$python setup.py build; \
36 done;
37
38=== modified file 'setup.py'
39--- setup.py 2012-10-09 07:21:40 +0000
40+++ setup.py 2012-10-12 18:50:25 +0000
41@@ -4,6 +4,7 @@
42 import re
43 import errno
44 import posixpath
45+import subprocess
46 from glob import glob
47
48 from distutils.core import setup
49@@ -12,7 +13,6 @@
50 from distutils.ccompiler import new_compiler
51 from distutils.command.build import build
52 from distutils.command.clean import clean
53-from distutils.command.install import install
54 from distutils.command.install_data import install_data
55 from distutils.command.install_scripts import install_scripts
56 try:
57@@ -107,6 +107,11 @@
58 self.sources = extract_sources_from_data_files(data_files)
59
60 def run(self):
61+ errno = subprocess.call(
62+ "(cd qt/frontend; qmake-qt4; make)", shell=True)
63+ if errno:
64+ raise SystemExit(errno)
65+
66 super(checkbox_build, self).run()
67
68 cc = new_compiler()
69@@ -141,19 +146,6 @@
70 raise
71
72
73-# Hack to workaround unsupported option in Python << 2.5
74-class checkbox_install(install, object):
75-
76- user_options = install.user_options + [
77- ('install-layout=', None,
78- "installation layout to choose (known values: deb)")]
79-
80- def initialize_options(self):
81- super(checkbox_install, self).initialize_options()
82-
83- self.install_layout = None
84-
85-
86 class checkbox_install_data(install_data, object):
87
88 def finalize_options(self):
89@@ -181,11 +173,11 @@
90 return
91
92 # Create etc directory
93- etcdir = convert_path("/etc/checkbox.d")
94- if not posixpath.isabs(etcdir):
95- etcdir = posixpath.join(self.install_dir, etcdir)
96- elif self.root:
97- etcdir = change_root(self.root, etcdir)
98+ if self.install_dir == "/usr":
99+ basedir = posixpath.sep
100+ else:
101+ basedir = self.install_dir
102+ etcdir = posixpath.join(basedir, "etc", "checkbox.d")
103 self.mkpath(etcdir)
104
105 # Create configs symbolic link
106@@ -275,7 +267,6 @@
107 "build_i18n": build_i18n,
108 "build_icons": checkbox_build_icons,
109 "clean": checkbox_clean,
110- "install": checkbox_install,
111 "install_data": checkbox_install_data,
112 "install_scripts": checkbox_install_scripts}
113 )

Subscribers

People subscribed via source and target branches