compile.py
19 lines
| 397 B
| text/x-python
|
PythonLexer
/ tools / compile.py
Brian Granger
|
r1717 | #!/usr/bin/env python | ||
Fernando Perez
|
r2118 | """Script to check that all code in a directory compiles correctly. | ||
Brian Granger
|
r1717 | |||
Fernando Perez
|
r2118 | Usage: | ||
Brian Granger
|
r1717 | |||
Fernando Perez
|
r2118 | compile.py | ||
Brian Granger
|
r1717 | |||
Fernando Perez
|
r2118 | This script verifies that all Python files in the directory where run, and all | ||
of its subdirectories, compile correctly. | ||||
Brian Granger
|
r1717 | |||
Fernando Perez
|
r2118 | Before a release, call this script from the top-level directory. | ||
""" | ||||
import sys | ||||
Brian Granger
|
r1717 | |||
Fernando Perez
|
r2118 | from toollib import compile_tree | ||
Brian Granger
|
r1717 | |||
Fernando Perez
|
r2118 | if __name__ == '__main__': | ||
compile_tree() | ||||