[pygobject: 3/8] dsextras.py: add have_gcc() function
- From: Dieter Verfaillie <dieterv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject: 3/8] dsextras.py: add have_gcc() function
- Date: Fri, 21 Jan 2011 08:35:50 +0000 (UTC)
commit 35e590d48c78f2e76c47c2b4eaf0f7e8d1ed5c93
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Tue Dec 14 12:25:07 2010 +0100
dsextras.py: add have_gcc() function
dsextras.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/dsextras.py b/dsextras.py
index 7c5ec2b..81fdbb9 100644
--- a/dsextras.py
+++ b/dsextras.py
@@ -77,6 +77,11 @@ def getstatusoutput(cmd):
from commands import getstatusoutput
return getstatusoutput(cmd)
+def have_gcc():
+ '''Checks for the existence of gcc'''
+ if find_executable('gcc'):
+ return True
+
def have_pkgconfig():
'''Checks for the existence of pkg-config'''
if find_executable('pkg-config'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]