From: Greg Ward Date: Sun, 1 Oct 2000 23:50:13 +0000 (+0000) Subject: From 'run()', only call 'bytecompile()' if we actually have X-Git-Tag: v2.0c1~177 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1acc690184eaa277a200b8ceb37699ad6202a89;p=thirdparty%2FPython%2Fcpython.git From 'run()', only call 'bytecompile()' if we actually have pure Python modules to compile. --- diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py index 6ad0a54b3259..2396eedad39b 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 ()