summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_py.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-04-10 00:19:42 (GMT)
committerGreg Ward <gward@python.net>2000-04-10 00:19:42 (GMT)
commitc41d6b35a9de3dd9e3057a0db9a83b182e792f79 (patch)
treea1a50e32bea0cce7fce02834e321c86b30dc209e /Lib/distutils/command/build_py.py
parent68a0757e23588a7ea76c562985160484e22a953d (diff)
downloadcpython-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.py')
-rw-r--r--Lib/distutils/command/build_py.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py
index 3baddc6..d719cec 100644
--- a/Lib/distutils/command/build_py.py
+++ b/Lib/distutils/command/build_py.py
@@ -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.