diff options
Diffstat (limited to 'Lib/distutils/command/install.py')
-rw-r--r-- | Lib/distutils/command/install.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py index 1f45780..ec73b1c 100644 --- a/Lib/distutils/command/install.py +++ b/Lib/distutils/command/install.py @@ -43,6 +43,9 @@ class Install (Command): ('install-html=', None, "directory for HTML documentation"), ('install-info=', None, "directory for GNU info files"), + # Flags for 'build_py' + ('compile-py', None, "compile .py to .pyc"), + ('optimize-py', None, "compile .py to .pyo (optimized)"), ] def set_default_options (self): @@ -74,6 +77,9 @@ class Install (Command): self.install_html = None self.install_info = None + self.compile_py = 1 + self.optimize_py = 1 + def set_final_options (self): |