Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1709)

Unified Diff: build_image

Issue 2850045: Allow python to find gtk module. (originally nsanders CL) (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_image
diff --git a/build_image b/build_image
index 977e2ca885875a5b43c6b769cf5e0c778d31b126..23dcf5b477538ee3155d54e3e9e6c7bb0d386784 100755
--- a/build_image
+++ b/build_image
@@ -420,6 +420,14 @@ update_dev_packages() {
sudo ln -sf vim "${ROOT_FS_DIR}/usr/local/bin/vi"
fi
+ # If pygtk is installed in stateful-dev, then install a path.
+ if [[ -d \
+ "${ROOT_FS_DIR}/usr/local/lib/python2.6/site-packages/gtk-2.0" ]]; then
+ sudo bash -c "\
Tom Wai-Hong Tam 2010/07/07 02:46:00 Why don't you just "sudo echo gtk-2.0 > ..."?
Tammo Spalink 2010/07/07 02:52:31 Does that work with the redirect -- I can never re
Tom Wai-Hong Tam 2010/07/07 03:14:45 You are right. Not work with redirect. Keep the or
+ echo gtk-2.0 > \
+ ${ROOT_FS_DIR}/usr/local/lib/python2.6/site-packages/pygtk.pth"
+ fi
+
# Check that the image has been correctly created. Only do it if not
# building a factory install image, as the INSTALL_MASK for it will
# make test_image fail.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698