diff options
author | Greg Ward <gward@python.net> | 1999-09-29 12:38:18 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 1999-09-29 12:38:18 (GMT) |
commit | e6ac2fcc125621d4dea4240b3b1e9572d8c8e0ab (patch) | |
tree | bbed10dc95483f1af9a84877fe1421dde33b3cef /Lib/distutils/command/build.py | |
parent | df178f97de0a03b40ee1cb0772d1546bf466dd26 (diff) | |
download | cpython-e6ac2fcc125621d4dea4240b3b1e9572d8c8e0ab.zip cpython-e6ac2fcc125621d4dea4240b3b1e9572d8c8e0ab.tar.gz cpython-e6ac2fcc125621d4dea4240b3b1e9572d8c8e0ab.tar.bz2 |
Renamed many options to be consistent across commands.
Tweaked some help strings to be consistent with documentation.
Don't call 'set_final_options()' in 'run()' anymore -- that's now
guaranteed to be taken care of for us by the Distribution instance.
Diffstat (limited to 'Lib/distutils/command/build.py')
-rw-r--r-- | Lib/distutils/command/build.py | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py index b74e51c..1586e60 100644 --- a/Lib/distutils/command/build.py +++ b/Lib/distutils/command/build.py @@ -12,31 +12,32 @@ from distutils.core import Command class Build (Command): - options = [('basedir=', 'b', "base directory for build library"), - ('libdir=', 'l', "directory for platform-shared files"), - ('platdir=', 'p', "directory for platform-specific files"), + options = [('build-base=', 'b', + "base directory for build library"), + ('build-lib=', 'l', + "directory for platform-shared files"), + ('build-platlib=', 'p', + "directory for platform-specific files"), ] def set_default_options (self): - self.basedir = 'build' - # these are decided only after 'basedir' has its final value + self.build_base = 'build' + # these are decided only after 'build_base' has its final value # (unless overridden by the user or client) - self.libdir = None - self.platdir = None + self.build_lib = None + self.build_platlib = None def set_final_options (self): - # 'libdir' and 'platdir' just default to 'lib' and 'plat' under - # the base build directory - if self.libdir is None: - self.libdir = os.path.join (self.basedir, 'lib') - if self.platdir is None: - self.platdir = os.path.join (self.basedir, 'platlib') + # 'build_lib' and 'build_platlib' just default to 'lib' and + # 'platlib' under the base build directory + if self.build_lib is None: + self.build_lib = os.path.join (self.build_base, 'lib') + if self.build_platlib is None: + self.build_platlib = os.path.join (self.build_base, 'platlib') def run (self): - self.set_final_options () - # For now, "build" means "build_py" then "build_ext". (Eventually # it should also build documentation.) |