diff options
author | Greg Ward <gward@python.net> | 2000-09-13 01:02:25 +0000 |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-09-13 01:02:25 +0000 |
commit | 3a0310a328384180b07547091dea5be477a06177 (patch) | |
tree | 901d77b6696900b7ecb5764cefa1d283e257af36 /Lib/distutils/command/install_data.py | |
parent | 1830b2118676679813aedf211f6b967bb3fe4396 (diff) | |
download | cpython-git-3a0310a328384180b07547091dea5be477a06177.tar.gz |
Added --force (-f) option to force installation (including bytecode
compilation).
Diffstat (limited to 'Lib/distutils/command/install_data.py')
-rw-r--r-- | Lib/distutils/command/install_data.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py index 9193f91924..6cfc7d41f3 100644 --- a/Lib/distutils/command/install_data.py +++ b/Lib/distutils/command/install_data.py @@ -22,18 +22,21 @@ class install_data (Command): "(default: installation base dir)"), ('root=', None, "install everything relative to this alternate root directory"), + ('force', 'f', "force installation (overwrite existing files)"), ] def initialize_options (self): self.install_dir = None self.outfiles = [] self.root = None + self.force = 0 self.data_files = self.distribution.data_files def finalize_options (self): self.set_undefined_options('install', ('install_data', 'install_dir'), ('root', 'root'), + ('force', 'force'), ) def run (self): |