diff options
author | Greg Ward <gward@python.net> | 2000-10-01 23:50:13 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-10-01 23:50:13 (GMT) |
commit | c1acc690184eaa277a200b8ceb37699ad6202a89 (patch) | |
tree | 7c3eab533ae972b1ba15e5158aef4ca3ae234a9f /Lib | |
parent | f217e2124a9b57dc13513ea4f9e430413135269e (diff) | |
download | cpython-c1acc690184eaa277a200b8ceb37699ad6202a89.zip cpython-c1acc690184eaa277a200b8ceb37699ad6202a89.tar.gz cpython-c1acc690184eaa277a200b8ceb37699ad6202a89.tar.bz2 |
From 'run()', only call 'bytecompile()' if we actually have
pure Python modules to compile.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/install_lib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py index 6ad0a54..2396eed 100644 --- a/Lib/distutils/command/install_lib.py +++ b/Lib/distutils/command/install_lib.py @@ -57,7 +57,7 @@ class install_lib (Command): outfiles = self.install() # (Optionally) compile .py to .pyc - if outfiles is not None: + if outfiles is not None and self.distribution.has_pure_modules(): self.bytecompile(outfiles) # run () |