summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/install_lib.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>1999-09-29 12:38:18 (GMT)
committerGreg Ward <gward@python.net>1999-09-29 12:38:18 (GMT)
commite6ac2fcc125621d4dea4240b3b1e9572d8c8e0ab (patch)
treebbed10dc95483f1af9a84877fe1421dde33b3cef /Lib/distutils/command/install_lib.py
parentdf178f97de0a03b40ee1cb0772d1546bf466dd26 (diff)
downloadcpython-e6ac2fcc125621d4dea4240b3b1e9572d8c8e0ab.zip
cpython-e6ac2fcc125621d4dea4240b3b1e9572d8c8e0ab.tar.gz
cpython-e6ac2fcc125621d4dea4240b3b1e9572d8c8e0ab.tar.bz2
Renamed many options to be consistent across commands.
Tweaked some help strings to be consistent with documentation. Don't call 'set_final_options()' in 'run()' anymore -- that's now guaranteed to be taken care of for us by the Distribution instance.
Diffstat (limited to 'Lib/distutils/command/install_lib.py')
-rw-r--r--Lib/distutils/command/install_lib.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py
index a2ba16c..978bb3b 100644
--- a/Lib/distutils/command/install_lib.py
+++ b/Lib/distutils/command/install_lib.py
@@ -8,7 +8,7 @@ from distutils.util import copy_tree
class InstallPy (Command):
- options = [('dir=', 'd', "directory to install to"),
+ options = [('install-dir=', 'd', "directory to install to"),
('build-dir=','b', "build directory (where to install from)"),
('compile', 'c', "compile .py to .pyc"),
('optimize', 'o', "compile .py to .pyo (optimized)"),
@@ -17,7 +17,7 @@ class InstallPy (Command):
def set_default_options (self):
# let the 'install' command dictate our installation directory
- self.dir = None
+ self.install_dir = None
self.build_dir = None
self.compile = 1
self.optimize = 1
@@ -39,18 +39,16 @@ class InstallPy (Command):
# install (target) directory, and whether to compile .py files.
self.set_undefined_options ('install',
('build_lib', 'build_dir'),
- (dir_option, 'dir'),
+ (dir_option, 'install_dir'),
('compile_py', 'compile'),
('optimize_py', 'optimize'))
def run (self):
- self.set_final_options ()
-
# Dump entire contents of the build directory to the installation
# directory (that's the beauty of having a build directory!)
- outfiles = self.copy_tree (self.build_dir, self.dir)
+ outfiles = self.copy_tree (self.build_dir, self.install_dir)
# (Optionally) compile .py to .pyc
# XXX hey! we can't control whether we optimize or not; that's up