Added --force (-f) option to force installation (including bytecode
compilation).
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index 2cb7871..2332770 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -85,8 +85,9 @@
('install-data=', None,
"installation directory for data files"),
- # For lazy debuggers who just want to test the install
- # commands without rerunning "build" all the time
+ # Miscellaneous control options
+ ('force', 'f',
+ "force installation (overwrite any existing files)"),
('skip-build', None,
"skip rebuilding everything (for testing/debugging)"),
@@ -146,6 +147,7 @@
self.extra_path = None
self.install_path_file = 0
+ self.force = 0
self.skip_build = 0
# These are only here as a conduit from the 'build' command to the