]> granicus.if.org Git - python/commitdiff
From 'run()', only call 'bytecompile()' if we actually have
authorGreg Ward <gward@python.net>
Sun, 1 Oct 2000 23:50:13 +0000 (23:50 +0000)
committerGreg Ward <gward@python.net>
Sun, 1 Oct 2000 23:50:13 +0000 (23:50 +0000)
pure Python modules to compile.

Lib/distutils/command/install_lib.py

index 6ad0a54b325990402bee2d66c10f600eb6a8f8fb..2396eedad39b56cddd5e3184eb2a6a6915215ede 100644 (file)
@@ -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 ()