diff options
author | Greg Ward <gward@python.net> | 2000-03-29 02:14:21 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-03-29 02:14:21 (GMT) |
commit | ae45b16157cad4b6d3fd844b4684bc538549ddc5 (patch) | |
tree | 5069698ed11331fa078090b850b186358f2250bf /Lib/distutils/command/build.py | |
parent | 4d16e0ac20a6eef119cab8950b7455fa7abdbf71 (diff) | |
download | cpython-ae45b16157cad4b6d3fd844b4684bc538549ddc5.zip cpython-ae45b16157cad4b6d3fd844b4684bc538549ddc5.tar.gz cpython-ae45b16157cad4b6d3fd844b4684bc538549ddc5.tar.bz2 |
Use the new 'has_pure_modules()', 'has_ext_modules()', 'has_c_libraries()'
methods of Distribution instead of grovelling directly in self.distribution.
Diffstat (limited to 'Lib/distutils/command/build.py')
-rw-r--r-- | Lib/distutils/command/build.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py index 97466fd..2da589a 100644 --- a/Lib/distutils/command/build.py +++ b/Lib/distutils/command/build.py @@ -80,18 +80,18 @@ class build (Command): # Invoke the 'build_py' command to "build" pure Python modules # (ie. copy 'em into the build tree) - if self.distribution.packages or self.distribution.py_modules: + if self.distribution.has_pure_modules(): self.run_peer ('build_py') # Build any standalone C libraries next -- they're most likely to # be needed by extension modules, so obviously have to be done # first! - if self.distribution.libraries: + if self.distribution.has_c_libraries(): self.run_peer ('build_clib') # And now 'build_ext' -- compile extension modules and put them # into the build tree - if self.distribution.ext_modules: + if self.distribution.has_ext_modules(): self.run_peer ('build_ext') # end class Build |