summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-10-01 23:50:13 (GMT)
committerGreg Ward <gward@python.net>2000-10-01 23:50:13 (GMT)
commitc1acc690184eaa277a200b8ceb37699ad6202a89 (patch)
tree7c3eab533ae972b1ba15e5158aef4ca3ae234a9f /Lib/distutils
parentf217e2124a9b57dc13513ea4f9e430413135269e (diff)
downloadcpython-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/distutils')
-rw-r--r--Lib/distutils/command/install_lib.py2
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 ()