diff options
author | Greg Ward <gward@python.net> | 2000-10-02 02:16:04 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-10-02 02:16:04 (GMT) |
commit | 8161022d4d880ab03cc90d3d46b32d7991ff742c (patch) | |
tree | 3c59807dd7688e45d1a3e73007dcb3178259bab8 /Lib/distutils | |
parent | cb9c9aed01abc99cad2fbadd0b407d226bbbb2ba (diff) | |
download | cpython-8161022d4d880ab03cc90d3d46b32d7991ff742c.zip cpython-8161022d4d880ab03cc90d3d46b32d7991ff742c.tar.gz cpython-8161022d4d880ab03cc90d3d46b32d7991ff742c.tar.bz2 |
Added --compile, --optimize options so users have an easy way to
instruct the "install_lib" command from the command-line.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/install.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py index e9528c6..303ae4c 100644 --- a/Lib/distutils/command/install.py +++ b/Lib/distutils/command/install.py @@ -90,6 +90,15 @@ class install (Command): ('install-data=', None, "installation directory for data files"), + # Byte-compilation options -- see install_lib.py for details, as + # these are duplicated from there (but only install_lib does + # anything with them). + ('compile', 'c', "compile .py to .pyc [default]"), + ('no-compile', None, "don't compile .py files"), + ('optimize=', 'O', + "also compile with optimization: -O1 for \"python -O\", " + "-O2 for \"python -OO\", and -O0 to disable [default: -O0]"), + # Miscellaneous control options ('force', 'f', "force installation (overwrite any existing files)"), @@ -135,6 +144,9 @@ class install (Command): self.install_scripts = None self.install_data = None + self.compile = None + self.optimize = None + # These two are for putting non-packagized distributions into their # own directory and creating a .pth file if it makes sense. # 'extra_path' comes from the setup file; 'install_path_file' can |