Added --force (-f) option to force installation (including bytecode

compilation).
This commit is contained in:
Greg Ward 2000-09-13 01:02:25 +00:00
parent 1830b21186
commit 3a0310a328
5 changed files with 20 additions and 4 deletions

View file

@ -17,16 +17,21 @@ class install_headers (Command):
user_options = [('install-dir=', 'd',
"directory to install header files to"),
('force', 'f',
"force installation (overwrite existing files)"),
]
def initialize_options (self):
self.install_dir = None
self.force = 0
self.outfiles = []
def finalize_options (self):
self.set_undefined_options('install',
('install_headers', 'install_dir'))
('install_headers', 'install_dir'),
('force', 'force'))
def run (self):
headers = self.distribution.headers