From d1bea4f0053f22ab9b3592e0dfa39f09535bbc94 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sun, 1 Jun 2008 23:14:15 -0700 Subject: [PATCH] build: remove python-git in favor of GitPython Signed-off-by: David Aguilar --- wscript | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 5432db81..7eb5c814 100644 --- a/wscript +++ b/wscript @@ -38,8 +38,6 @@ def configure(conf): conf.check_tool('pyuic4', 'build') conf.check_tool('po2qm', 'build') - conf.sub_config('python-git') - env = conf.env prefix = env['PREFIX'] bindir = join(prefix, 'bin') @@ -57,11 +55,28 @@ def configure(conf): env['UGIT_ICONS'] = icons env['UGIT_APPS'] = apps + try: + import git + except ImportError: + print """ +ERROR: could not "import git" + +Please install the python-git package +or grab GitPython from the cheeseshop: + + http://pypi.python.org/pypi/GitPython + + +GitPython's git repository can be cloned from gitorious: + + http://gitorious.org/projects/git-python +""" + return False + ############################################################################# # Build def build(bld): bld.add_subdirs(""" - python-git scripts ui ugit -- 2.11.4.GIT