diff options
| author | Greg Ward <gward@python.net> | 2000-04-10 00:19:42 +0000 |
|---|---|---|
| committer | Greg Ward <gward@python.net> | 2000-04-10 00:19:42 +0000 |
| commit | 5f99c51af634e6d53353955add8bda432fa2d9ad (patch) | |
| tree | 7fe0d52317a5a7fb37d54ce580de4cc4437a5aec /command/build_py.py | |
| parent | 515669ce62c1021d1cecfadc1c006bb074beb202 (diff) | |
| download | python-setuptools-git-5f99c51af634e6d53353955add8bda432fa2d9ad.tar.gz | |
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 'command/build_py.py')
| -rw-r--r-- | command/build_py.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/command/build_py.py b/command/build_py.py index 3baddc62..d719cec8 100644 --- a/command/build_py.py +++ b/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. |
