diff options
author | Greg Ward <gward@python.net> | 2000-04-10 00:19:42 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-04-10 00:19:42 (GMT) |
commit | c41d6b35a9de3dd9e3057a0db9a83b182e792f79 (patch) | |
tree | a1a50e32bea0cce7fce02834e321c86b30dc209e /Lib/distutils/command/build.py | |
parent | 68a0757e23588a7ea76c562985160484e22a953d (diff) | |
download | cpython-c41d6b35a9de3dd9e3057a0db9a83b182e792f79.zip cpython-c41d6b35a9de3dd9e3057a0db9a83b182e792f79.tar.gz cpython-c41d6b35a9de3dd9e3057a0db9a83b182e792f79.tar.bz2 |
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.
Diffstat (limited to 'Lib/distutils/command/build.py')
-rw-r--r-- | Lib/distutils/command/build.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py index 2da589a..bca0ece 100644 --- a/Lib/distutils/command/build.py +++ b/Lib/distutils/command/build.py @@ -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! |