diff options
author | Greg Ward <gward@python.net> | 1999-05-02 21:39:13 +0000 |
---|---|---|
committer | Greg Ward <gward@python.net> | 1999-05-02 21:39:13 +0000 |
commit | 0f72695da324d4cc24ebbeb4873c23d01f97f861 (patch) | |
tree | 4ea1e1c5332f2957f923c49e5b43d1f921c9fb6f /Lib/distutils/command/install.py | |
parent | 85460a58f8935b56ad5fa3aae5c3545a444d0ace (diff) | |
download | cpython-git-0f72695da324d4cc24ebbeb4873c23d01f97f861.tar.gz |
Rearranged things so that compilation of .py files is the responsibility
of the 'install_py' command rather than 'build_py'. Obviously, this
meant that the 'build_py' and 'install_py' modules had to change; less
obviously, so did 'install' and 'build', since these higher-level
commands must make options available to control the lower-level
commands, and some compilation-related options had to migrate with the
code.
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 1f457807e1..ec73b1c1a8 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): |