diff options
author | Greg Ward <gward@python.net> | 2000-09-13 01:02:25 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-09-13 01:02:25 (GMT) |
commit | 3a0310a328384180b07547091dea5be477a06177 (patch) | |
tree | 901d77b6696900b7ecb5764cefa1d283e257af36 /Lib/distutils/command/install_scripts.py | |
parent | 1830b2118676679813aedf211f6b967bb3fe4396 (diff) | |
download | cpython-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_scripts.py')
-rw-r--r-- | Lib/distutils/command/install_scripts.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/distutils/command/install_scripts.py b/Lib/distutils/command/install_scripts.py index 3eb3963..d506f90 100644 --- a/Lib/distutils/command/install_scripts.py +++ b/Lib/distutils/command/install_scripts.py @@ -18,11 +18,13 @@ class install_scripts (Command): user_options = [ ('install-dir=', 'd', "directory to install scripts to"), ('build-dir=','b', "build directory (where to install from)"), + ('force', 'f', "force installation (overwrite existing files)"), ('skip-build', None, "skip the build steps"), ] def initialize_options (self): self.install_dir = None + self.force = 0 self.build_dir = None self.skip_build = None @@ -30,13 +32,14 @@ class install_scripts (Command): self.set_undefined_options('build', ('build_scripts', 'build_dir')) self.set_undefined_options ('install', ('install_scripts', 'install_dir'), + ('force', 'force'), ('skip_build', 'skip_build'), ) def run (self): if not self.skip_build: self.run_command('build_scripts') - self.outfiles = self.copy_tree (self.build_dir, self.install_dir) + self.outfiles = self.copy_tree(self.build_dir, self.install_dir) if os.name == 'posix': # Set the executable bits (owner, group, and world) on # all the scripts we just installed. |