From: Greg Ward Date: Sat, 5 Feb 2000 02:24:16 +0000 (+0000) Subject: Run the 'build_lib' command before building extensions, if necessary. X-Git-Tag: v1.6a1~492 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f7c18e816068b4d78230e46fb89c2bdb44b7fe7;p=python Run the 'build_lib' command before building extensions, if necessary. --- diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py index e6c87bfcae..768db12062 100644 --- a/Lib/distutils/command/build.py +++ b/Lib/distutils/command/build.py @@ -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: