summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/install_lib.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-09-13 01:02:25 (GMT)
committerGreg Ward <gward@python.net>2000-09-13 01:02:25 (GMT)
commit3a0310a328384180b07547091dea5be477a06177 (patch)
tree901d77b6696900b7ecb5764cefa1d283e257af36 /Lib/distutils/command/install_lib.py
parent1830b2118676679813aedf211f6b967bb3fe4396 (diff)
downloadcpython-3a0310a328384180b07547091dea5be477a06177.zip
cpython-3a0310a328384180b07547091dea5be477a06177.tar.gz
cpython-3a0310a328384180b07547091dea5be477a06177.tar.bz2
Added --force (-f) option to force installation (including bytecode
compilation).
Diffstat (limited to 'Lib/distutils/command/install_lib.py')
-rw-r--r--Lib/distutils/command/install_lib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py
index 879a7d0..2d19e5b 100644
--- a/Lib/distutils/command/install_lib.py
+++ b/Lib/distutils/command/install_lib.py
@@ -13,6 +13,7 @@ class install_lib (Command):
user_options = [
('install-dir=', 'd', "directory to install to"),
('build-dir=','b', "build directory (where to install from)"),
+ ('force', 'f', "force installation (overwrite existing files)"),
('compile', 'c', "compile .py to .pyc"),
('optimize', 'o', "compile .py to .pyo (optimized)"),
('skip-build', None, "skip the build steps"),
@@ -23,6 +24,7 @@ class install_lib (Command):
# let the 'install' command dictate our installation directory
self.install_dir = None
self.build_dir = None
+ self.force = 0
self.compile = 1
self.optimize = 1
self.skip_build = None
@@ -35,6 +37,7 @@ class install_lib (Command):
self.set_undefined_options ('install',
('build_lib', 'build_dir'),
('install_lib', 'install_dir'),
+ ('force', 'force'),
('compile_py', 'compile'),
('optimize_py', 'optimize'),
('skip_build', 'skip_build'),