From 38870cb432687b62a660bd18cc43ac66882ce869 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Thu, 5 Feb 2009 22:14:04 +0000 Subject: [PATCH] Oops, Mac build needs the 'incdirlist' variable so restore it. --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 13bb1dedcf0..76b0af069f1 100644 --- a/setup.py +++ b/setup.py @@ -122,13 +122,14 @@ class PyBuildExt(build_ext): moddirlist = [os.path.join(srcdir, 'Modules')] # Platform-dependent module source and include directories + incdirlist = [] platform = self.get_platform() if platform in ('darwin', 'mac') and ("--disable-toolbox-glue" not in sysconfig.get_config_var("CONFIG_ARGS")): # Mac OS X also includes some mac-specific modules macmoddir = os.path.join(srcdir, 'Mac/Modules') moddirlist.append(macmoddir) - incdirlist.append('./Mac/Include') + incdirlist.append(os.path.join(srcdir, 'Mac/Include')) # Fix up the paths for scripts, too self.distribution.scripts = [os.path.join(srcdir, filename) @@ -148,6 +149,9 @@ class PyBuildExt(build_ext): # re-compile extensions if a header file has been changed ext.depends.extend(headers) + # platform specific include directories + ext.include_dirs.extend(incdirlist) + # If a module has already been built statically, # don't build it here if ext.name in sys.builtin_module_names: