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
=== modified file 'debian/changelog'
--- debian/changelog 2012-10-12 15:08:45 +0000
+++ debian/changelog 2012-10-12 18:50:25 +0000
@@ -2,6 +2,7 @@
22
3 * Increased version number after final Ubuntu Quantal release.3 * Increased version number after final Ubuntu Quantal release.
44
5<<<<<<< TREE
5 [Brendan Donegan]6 [Brendan Donegan]
6 * jobs/suspend.txt.in - make sure FWTS logs end with .log so file names7 * jobs/suspend.txt.in - make sure FWTS logs end with .log so file names
7 don't get tampered with (LP: #1065932)8 don't get tampered with (LP: #1065932)
@@ -20,6 +21,12 @@
20 appear in the checkbox UI (LP: #1064189)21 appear in the checkbox UI (LP: #1064189)
2122
22 -- Daniel Manrique <roadmr@ubuntu.com> Fri, 12 Oct 2012 10:47:26 -040023 -- Daniel Manrique <roadmr@ubuntu.com> Fri, 12 Oct 2012 10:47:26 -0400
24=======
25 [Marc Tardif]
26 * setup.py: Added support for installing in virtualenv.
27
28 -- Daniel Manrique <roadmr@ubuntu.com> Wed, 10 Oct 2012 09:45:08 -0400
29>>>>>>> MERGE-SOURCE
2330
24checkbox (0.14.6) quantal; urgency=low31checkbox (0.14.6) quantal; urgency=low
2532
2633
=== modified file 'debian/rules'
--- debian/rules 2012-07-13 03:09:52 +0000
+++ debian/rules 2012-10-12 18:50:25 +0000
@@ -4,7 +4,6 @@
4 dh "$@" --with python2,python3,translations4 dh "$@" --with python2,python3,translations
55
6override_dh_auto_build:6override_dh_auto_build:
7 (cd qt/frontend; qmake-qt4; make)
8 set -ex; for python in $(shell py3versions -r); do \7 set -ex; for python in $(shell py3versions -r); do \
9 $$python setup.py build; \8 $$python setup.py build; \
10 done;9 done;
1110
=== modified file 'setup.py'
--- setup.py 2012-10-09 07:21:40 +0000
+++ setup.py 2012-10-12 18:50:25 +0000
@@ -4,6 +4,7 @@
4import re4import re
5import errno5import errno
6import posixpath6import posixpath
7import subprocess
7from glob import glob8from glob import glob
89
9from distutils.core import setup10from distutils.core import setup
@@ -12,7 +13,6 @@
12from distutils.ccompiler import new_compiler13from distutils.ccompiler import new_compiler
13from distutils.command.build import build14from distutils.command.build import build
14from distutils.command.clean import clean15from distutils.command.clean import clean
15from distutils.command.install import install
16from distutils.command.install_data import install_data16from distutils.command.install_data import install_data
17from distutils.command.install_scripts import install_scripts17from distutils.command.install_scripts import install_scripts
18try:18try:
@@ -107,6 +107,11 @@
107 self.sources = extract_sources_from_data_files(data_files)107 self.sources = extract_sources_from_data_files(data_files)
108108
109 def run(self):109 def run(self):
110 errno = subprocess.call(
111 "(cd qt/frontend; qmake-qt4; make)", shell=True)
112 if errno:
113 raise SystemExit(errno)
114
110 super(checkbox_build, self).run()115 super(checkbox_build, self).run()
111116
112 cc = new_compiler()117 cc = new_compiler()
@@ -141,19 +146,6 @@
141 raise146 raise
142147
143148
144# Hack to workaround unsupported option in Python << 2.5
145class checkbox_install(install, object):
146
147 user_options = install.user_options + [
148 ('install-layout=', None,
149 "installation layout to choose (known values: deb)")]
150
151 def initialize_options(self):
152 super(checkbox_install, self).initialize_options()
153
154 self.install_layout = None
155
156
157class checkbox_install_data(install_data, object):149class checkbox_install_data(install_data, object):
158150
159 def finalize_options(self):151 def finalize_options(self):
@@ -181,11 +173,11 @@
181 return173 return
182174
183 # Create etc directory175 # Create etc directory
184 etcdir = convert_path("/etc/checkbox.d")176 if self.install_dir == "/usr":
185 if not posixpath.isabs(etcdir):177 basedir = posixpath.sep
186 etcdir = posixpath.join(self.install_dir, etcdir)178 else:
187 elif self.root:179 basedir = self.install_dir
188 etcdir = change_root(self.root, etcdir)180 etcdir = posixpath.join(basedir, "etc", "checkbox.d")
189 self.mkpath(etcdir)181 self.mkpath(etcdir)
190182
191 # Create configs symbolic link183 # Create configs symbolic link
@@ -275,7 +267,6 @@
275 "build_i18n": build_i18n,267 "build_i18n": build_i18n,
276 "build_icons": checkbox_build_icons,268 "build_icons": checkbox_build_icons,
277 "clean": checkbox_clean,269 "clean": checkbox_clean,
278 "install": checkbox_install,
279 "install_data": checkbox_install_data,270 "install_data": checkbox_install_data,
280 "install_scripts": checkbox_install_scripts}271 "install_scripts": checkbox_install_scripts}
281)272)

Subscribers

People subscribed via source and target branches