]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use the new 'has_pure_modules()', 'has_ext_modules()', 'has_c_libraries()'
authorGreg Ward <gward@python.net>
Wed, 29 Mar 2000 02:14:21 +0000 (02:14 +0000)
committerGreg Ward <gward@python.net>
Wed, 29 Mar 2000 02:14:21 +0000 (02:14 +0000)
methods of Distribution instead of grovelling directly in self.distribution.

Lib/distutils/command/build.py

index 97466fdb48fea5017211e830838d0c5baa4ee093..2da589ab29b47b6c8447abade2e1d37e856eb645 100644 (file)
@@ -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