mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Added '--force' option -- very clear what it means for building (ignore
timestamps), so every build_* command has 'self.force', which follows the 'build' command if not set by the user.
This commit is contained in:
parent
68a0757e23
commit
c41d6b35a9
4 changed files with 21 additions and 3 deletions
|
@ -37,6 +37,8 @@ class build_clib (Command):
|
|||
"directory to put temporary build by-products"),
|
||||
('debug', 'g',
|
||||
"compile with debugging information"),
|
||||
('force', 'f',
|
||||
"forcibly build everything (ignore file timestamps"),
|
||||
]
|
||||
|
||||
def initialize_options (self):
|
||||
|
@ -51,6 +53,7 @@ class build_clib (Command):
|
|||
self.define = None
|
||||
self.undef = None
|
||||
self.debug = None
|
||||
self.force = 0
|
||||
|
||||
# initialize_options()
|
||||
|
||||
|
@ -65,7 +68,8 @@ class build_clib (Command):
|
|||
self.set_undefined_options ('build',
|
||||
('build_temp', 'build_clib'),
|
||||
('build_temp', 'build_temp'),
|
||||
('debug', 'debug'))
|
||||
('debug', 'debug'),
|
||||
('force', 'force'))
|
||||
|
||||
self.libraries = self.distribution.libraries
|
||||
if self.libraries:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue