[Python-checkins] CVS: distutils/distutils/command install.py,1.50,1.51

Greg Ward python-dev@python.org
Sun, 1 Oct 2000 19:16:10 -0700


Update of /cvsroot/python/distutils/distutils/command
In directory slayer.i.sourceforge.net:/tmp/cvs-serv3827

Modified Files:
	install.py 
Log Message:
Added --compile, --optimize options so users have an easy way to
instruct the "install_lib" command from the command-line.

Index: install.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/install.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -r1.50 -r1.51
*** install.py	2000/09/30 18:27:54	1.50
--- install.py	2000/10/02 02:16:04	1.51
***************
*** 91,94 ****
--- 91,103 ----
           "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',
***************
*** 135,138 ****
--- 144,150 ----
          self.install_scripts = None
          self.install_data = None
+ 
+         self.compile = None
+         self.optimize = None
  
          # These two are for putting non-packagized distributions into their