]> granicus.if.org Git - python/commitdiff
Run the 'build_lib' command before building extensions, if necessary.
authorGreg Ward <gward@python.net>
Sat, 5 Feb 2000 02:24:16 +0000 (02:24 +0000)
committerGreg Ward <gward@python.net>
Sat, 5 Feb 2000 02:24:16 +0000 (02:24 +0000)
Lib/distutils/command/build.py

index e6c87bfcaef997b47adddb6d8545391bda200a6c..768db120620442aaf444a8d123a35fca5db3bd2e 100644 (file)
@@ -48,6 +48,12 @@ class Build (Command):
         if self.distribution.packages or self.distribution.py_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:
+            self.run_peer ('build_lib')
+
         # And now 'build_ext' -- compile extension modules and put them
         # into the build tree
         if self.distribution.ext_modules: