summaryrefslogtreecommitdiff
path: root/Mac/Modules/cg
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-15 21:48:16 +0000
committerJack Jansen <jack.jansen@cwi.nl>2002-08-15 21:48:16 +0000
commit3f54317e2992029daf2eba29ff67dfd2f54629dc (patch)
tree73dd33f2c40130134c9b6dc5a4c1d40c2f82f2f5 /Mac/Modules/cg
parente841f8707593d0ab92165a93cf860ed18576ec83 (diff)
downloadcpython-3f54317e2992029daf2eba29ff67dfd2f54629dc.tar.gz
After generating the Python file with definitions try to run it, so
we catch errors during the build process in stead of later during runtime.
Diffstat (limited to 'Mac/Modules/cg')
-rwxr-xr-xMac/Modules/cg/cgscan.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Modules/cg/cgscan.py b/Mac/Modules/cg/cgscan.py
index 4ed2127be7..5d84500d6e 100755
--- a/Mac/Modules/cg/cgscan.py
+++ b/Mac/Modules/cg/cgscan.py
@@ -22,6 +22,8 @@ def main():
scanner.scan()
scanner.gentypetest(SHORT+"typetest.py")
scanner.close()
+ print "=== Testing definitions output code ==="
+ execfile(defsoutput, {}, {})
print "=== Done scanning and generating, now importing the generated code... ==="
exec "import " + SHORT + "support"
print "=== Done. It's up to you to compile it now! ==="