summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-02-05 02:24:16 (GMT)
committerGreg Ward <gward@python.net>2000-02-05 02:24:16 (GMT)
commit5f7c18e816068b4d78230e46fb89c2bdb44b7fe7 (patch)
tree46dd406a11cbca7970471d0095262866c1b00da1 /Lib/distutils/command/build.py
parentaaf27ee07bad8604f79fb514e81e9484f4326d4e (diff)
downloadcpython-5f7c18e816068b4d78230e46fb89c2bdb44b7fe7.zip
cpython-5f7c18e816068b4d78230e46fb89c2bdb44b7fe7.tar.gz
cpython-5f7c18e816068b4d78230e46fb89c2bdb44b7fe7.tar.bz2
Run the 'build_lib' command before building extensions, if necessary.
Diffstat (limited to 'Lib/distutils/command/build.py')
-rw-r--r--Lib/distutils/command/build.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py
index e6c87bf..768db12 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: