def _compile(self):
"""
Byte-compile all modules and packages.
"""
self.log('\n# Byte-compiling all *.py files...')
quiet = self.verbosity <= 1
valid = compileall.compile_dir(self._root, quiet=quiet, force=True)
if not valid:
self.log('\n FAIL: Compilation error(s)\n')
self._success = False
评论列表
文章目录