Lines Matching refs:optimize
27 # 1) no compilation at all (--no-compile --no-optimize)
28 # 2) compile .pyc only (--compile --no-optimize; default)
29 # 3) compile .pyc and "level 1" .pyo (--compile --optimize)
30 # 4) compile "level 1" .pyo only (--no-compile --optimize)
31 # 5) compile .pyc and "level 2" .pyo (--compile --optimize-more)
32 # 6) compile "level 2" .pyo only (--no-compile --optimize-more)
34 # The UI for this is two option, 'compile' and 'optimize'.
36 # generate .pyc files. 'optimize' is three-way (0, 1, or 2), and
46 ('optimize=', 'O',
61 self.optimize = None
73 ('optimize', 'optimize'),
79 if self.optimize is None:
80 self.optimize = 0
82 if not isinstance(self.optimize, int):
84 self.optimize = int(self.optimize)
85 if self.optimize not in (0, 1, 2):
88 raise DistutilsOptionError, "optimize must be 0, 1, or 2"
136 byte_compile(files, optimize=0,
139 if self.optimize > 0:
140 byte_compile(files, optimize=self.optimize,
173 if self.optimize > 0: