Lines Matching +full:- +full:- +full:quiet
1 """Module/script to byte-compile all .py files to .pyc (or .pyo) files.
4 given as arguments recursively; the -l option prevents it from
9 packages -- for now, you'll have to deal with packages separately.)
11 See module py_compile for details of the actual byte-compilation.
22 force=0, rx=None, quiet=0): argument
23 """Byte-compile all modules in the given directory tree.
27 dir: the directory to byte-compile
30 file as it is compiled into each byte-code file.
31 force: if 1, force compilation, even if timestamps are up-to-date
32 quiet: if 1, be quiet during compilation
34 if not quiet:
50 if not compile_file(fullname, ddir, force, rx, quiet):
56 if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
57 quiet):
61 def compile_file(fullname, ddir=None, force=0, rx=None, quiet=0): argument
62 """Byte-compile one file.
66 fullname: the file to byte-compile
68 byte-code file.
69 force: if 1, force compilation, even if timestamps are up-to-date
70 quiet: if 1, be quiet during compilation
83 head, tail = name[:-3], name[-3:]
96 if not quiet:
101 if quiet:
113 def compile_path(skip_curdir=1, maxlevels=0, force=0, quiet=0): argument
114 """Byte-compile all module on sys.path.
121 quiet: as for compile_dir() (default 0)
129 force, quiet=quiet)
137 if flist == '-':
145 expanded.append(line[:-1])
158 print "usage: python compileall.py [-l] [-f] [-q] [-d destdir] " \
159 "[-x regexp] [-i list] [directory|file ...]"
163 print " defaults to the equivalent of -l sys.path"
166 print "-l: don't recurse into subdirectories"
167 print "-f: force rebuild even if timestamps are up-to-date"
168 print "-q: output only error messages"
169 print "-d destdir: directory to prepend to file paths for use in " \
170 "compile-time tracebacks and in"
173 print "-x regexp: skip files matching the regular expression regexp; " \
177 print "-i file: add all the files and directories listed in file to " \
179 print ' compilation; if "-", names are read from stdin'
185 quiet = 0
189 if o == '-l': maxlevels = 0
190 if o == '-d': ddir = a
191 if o == '-f': force = 1
192 if o == '-q': quiet = 1
193 if o == '-x':
196 if o == '-i': flist = a
199 print "-d destdir require exactly one directory argument"
213 force, rx, quiet):
216 if not compile_file(arg, ddir, force, rx, quiet):