]> granicus.if.org Git - python/commitdiff
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
authorGreg Ward <gward@python.net>
Sat, 30 Sep 2000 17:35:26 +0000 (17:35 +0000)
committerGreg Ward <gward@python.net>
Sat, 30 Sep 2000 17:35:26 +0000 (17:35 +0000)
Lib/distutils/command/install_lib.py

index a603b4f59ee30fb1afa7eade570b9077ebdd0690..2c92f3fe4a8f6584b0c9cf35e60911b049f03b85 100644 (file)
@@ -56,7 +56,8 @@ class install_lib (Command):
         outfiles = self.install()
 
         # (Optionally) compile .py to .pyc
-        self.bytecompile(outfiles)
+        if outfiles is not None:
+            self.bytecompile(outfiles)
 
     # run ()