mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +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
|
@ -20,6 +20,7 @@ class build_py (Command):
|
|||
|
||||
user_options = [
|
||||
('build-lib=', 'd', "directory to \"build\" (copy) to"),
|
||||
('force', 'f', "forcibly build everything (ignore file timestamps"),
|
||||
]
|
||||
|
||||
|
||||
|
@ -28,10 +29,14 @@ class build_py (Command):
|
|||
self.modules = None
|
||||
self.package = None
|
||||
self.package_dir = None
|
||||
self.force = None
|
||||
|
||||
def finalize_options (self):
|
||||
print "build_py.finalize: force=%s" % self.force
|
||||
self.set_undefined_options ('build',
|
||||
('build_lib', 'build_lib'))
|
||||
('build_lib', 'build_lib'),
|
||||
('force', 'force'))
|
||||
print "build_py.finalize: force=%s" % self.force
|
||||
|
||||
# Get the distribution options that are aliases for build_py
|
||||
# options -- list of packages and list of modules.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue