add newline to source before compilation
diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py
index 01b5392..81a086b 100644
--- a/Lib/plat-mac/buildtools.py
+++ b/Lib/plat-mac/buildtools.py
@@ -85,7 +85,7 @@
 	text = fp.read()
 	fp.close()
 	try:
-		code = compile(text, filename, "exec")
+		code = compile(text + '\n', filename, "exec")
 	except SyntaxError, arg:
 		raise BuildError, "Syntax error in script %s: %s" % (filename, arg)
 	except EOFError: