diff options
| author | Greg Ward <gward@python.net> | 2000-02-05 02:24:16 (GMT) |
|---|---|---|
| committer | Greg Ward <gward@python.net> | 2000-02-05 02:24:16 (GMT) |
| commit | 5f7c18e816068b4d78230e46fb89c2bdb44b7fe7 (patch) | |
| tree | 46dd406a11cbca7970471d0095262866c1b00da1 | |
| parent | aaf27ee07bad8604f79fb514e81e9484f4326d4e (diff) | |
| download | cpython-5f7c18e816068b4d78230e46fb89c2bdb44b7fe7.zip cpython-5f7c18e816068b4d78230e46fb89c2bdb44b7fe7.tar.gz cpython-5f7c18e816068b4d78230e46fb89c2bdb44b7fe7.tar.bz2 | |
Run the 'build_lib' command before building extensions, if necessary.
| -rw-r--r-- | Lib/distutils/command/build.py | 6 |
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: |
