Run the 'build_lib' command before building extensions, if necessary.

This commit is contained in:
Greg Ward 2000-02-05 02:24:16 +00:00
parent aaf27ee07b
commit 5f7c18e816
1 changed files with 6 additions and 0 deletions

View 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: