From cfc0c6482373af1d1faeac8a4fea3863bc77a847 Mon Sep 17 00:00:00 2001 From: Tammo Spalink Date: Wed, 7 Jul 2010 10:51:21 +0800 Subject: [PATCH] Allow python to find gtk module. (originally nsanders CL) BUG=4464 TEST=manually edit file so far Review URL: http://codereview.chromium.org/2850045 --- build_image | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build_image b/build_image index 977e2ca885..23dcf5b477 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 "\ + 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.