diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-08-15 21:48:16 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-08-15 21:48:16 +0000 |
commit | 3f54317e2992029daf2eba29ff67dfd2f54629dc (patch) | |
tree | 73dd33f2c40130134c9b6dc5a4c1d40c2f82f2f5 /Mac/Modules/cg | |
parent | e841f8707593d0ab92165a93cf860ed18576ec83 (diff) | |
download | cpython-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-x | Mac/Modules/cg/cgscan.py | 2 |
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! ===" |