From 3e6d43801b9d8ec5e73588f52bac660e14257160 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Sat, 30 Sep 2000 17:35:26 +0000 Subject: [PATCH] Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None. --- Lib/distutils/command/install_lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py index a603b4f59ee..2c92f3fe4a8 100644 --- a/Lib/distutils/command/install_lib.py +++ b/Lib/distutils/command/install_lib.py @@ -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 ()