mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Added --force (-f) option to force installation (including bytecode
compilation).
This commit is contained in:
parent
1830b21186
commit
3a0310a328
5 changed files with 20 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue