From 0b07af909c44f27368a13ecfa94bfda5762e58fb Mon Sep 17 00:00:00 2001 From: Cedric Gustin Date: Wed, 4 Jan 2006 22:14:09 +0000 Subject: Pass GLOBAL_MACROS (in particular HAVE_PYCAIRO) to codegen DefsParser. If 2006-01-04 Cedric Gustin * dsextras.py (Template.generate): Pass GLOBAL_MACROS (in particular HAVE_PYCAIRO) to codegen DefsParser. * setup.py: If pangocairo is enabled, add pycairo to the list of packages required to build the GTK+ module. Also set HAVE_PYCAIRO. --- dsextras.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsextras.py b/dsextras.py index 1557448..1c6d790 100644 --- a/dsextras.py +++ b/dsextras.py @@ -317,7 +317,7 @@ class Template: return for item in self.register: - dp = DefsParser(item) + dp = DefsParser(item,dict(GLOBAL_MACROS)) dp.startParsing() register_types(dp) @@ -325,7 +325,7 @@ class Template: globals = {} execfile(self.load_types, globals) - dp = DefsParser(self.defs) + dp = DefsParser(self.defs,dict(GLOBAL_MACROS)) dp.startParsing() register_types(dp) -- cgit