mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -28,6 +28,8 @@ class build (Command):
|
|||
"temporary build directory"),
|
||||
('debug', 'g',
|
||||
"compile extensions and libraries with debugging information"),
|
||||
('force', 'f',
|
||||
"forcibly build everything (ignore file timestamps"),
|
||||
]
|
||||
|
||||
def initialize_options (self):
|
||||
|
@ -39,9 +41,12 @@ class build (Command):
|
|||
self.build_lib = None
|
||||
self.build_temp = None
|
||||
self.debug = None
|
||||
self.force = 0
|
||||
|
||||
def finalize_options (self):
|
||||
|
||||
print "build.finalize: force=%s" % self.force
|
||||
|
||||
# Need this to name platform-specific directories, but sys.platform
|
||||
# is not enough -- it only names the OS and version, not the
|
||||
# hardware architecture!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue