Fixed various MacPython-specific issues found by attempting to use the standard core setup.py for MacPython.
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 847b872..74394ab 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -66,7 +66,10 @@
elif os.name == "nt":
return os.path.join(prefix, "include")
elif os.name == "mac":
- return os.path.join(prefix, "Include")
+ if plat_specific:
+ return os.path.join(prefix, "Mac", "Include")
+ else:
+ return os.path.join(prefix, "Include")
elif os.name == "os2":
return os.path.join(prefix, "Include")
else:
@@ -403,6 +406,8 @@
g['install_lib'] = os.path.join(EXEC_PREFIX, "Lib")
g['install_platlib'] = os.path.join(EXEC_PREFIX, "Mac", "Lib")
+ # These are used by the extension module build
+ g['srcdir'] = ':'
global _config_vars
_config_vars = g