diff options
author | Greg Ward <gward@python.net> | 2000-03-01 01:19:37 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-03-01 01:19:37 (GMT) |
commit | e6916516828a88ab71fab7a749f8c9cf6b52775a (patch) | |
tree | 79f7c446f01fff1cc8fd11f21e2dedbdd074619b /Lib/distutils/command/build_py.py | |
parent | 61b705a5700fadada031857f2bbf6dc94003820e (diff) | |
download | cpython-e6916516828a88ab71fab7a749f8c9cf6b52775a.zip cpython-e6916516828a88ab71fab7a749f8c9cf6b52775a.tar.gz cpython-e6916516828a88ab71fab7a749f8c9cf6b52775a.tar.bz2 |
Build reorg: change 'build_dir' option to 'build_lib'.
Diffstat (limited to 'Lib/distutils/command/build_py.py')
-rw-r--r-- | Lib/distutils/command/build_py.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py index 7ae207b..05a1bef 100644 --- a/Lib/distutils/command/build_py.py +++ b/Lib/distutils/command/build_py.py @@ -19,19 +19,19 @@ class build_py (Command): description = "\"build\" pure Python modules (copy to build directory)" user_options = [ - ('build-dir=', 'd', "directory for platform-shared files"), + ('build-lib=', 'd', "directory to \"build\" (copy) to"), ] def initialize_options (self): - self.build_dir = None + self.build_lib = None self.modules = None self.package = None self.package_dir = None def finalize_options (self): self.set_undefined_options ('build', - ('build_lib', 'build_dir')) + ('build_lib', 'build_lib')) # Get the distribution options that are aliases for build_py # options -- list of packages and list of modules. @@ -259,11 +259,11 @@ class build_py (Command): "'package' must be a string (dot-separated), list, or tuple" # Now put the module source file into the "build" area -- this is - # easy, we just copy it somewhere under self.build_dir (the build + # easy, we just copy it somewhere under self.build_lib (the build # directory for Python source). outfile_path = list (package) outfile_path.append (module + ".py") - outfile_path.insert (0, self.build_dir) + outfile_path.insert (0, self.build_lib) outfile = apply (os.path.join, outfile_path) dir = os.path.dirname (outfile) @@ -277,9 +277,9 @@ class build_py (Command): for (module, package, module_file) in modules: # Now "build" the module -- ie. copy the source file to - # self.build_dir (the build directory for Python source). + # self.build_lib (the build directory for Python source). # (Actually, it gets copied to the directory for this package - # under self.build_dir.) + # under self.build_lib.) self.build_module (module, module_file, package) # build_modules () @@ -300,7 +300,7 @@ class build_py (Command): modules = self.find_package_modules (package, package_dir) # Now loop over the modules we found, "building" each one (just - # copy it to self.build_dir). + # copy it to self.build_lib). for (module, module_file) in modules: self.build_module (module, module_file, package) |