summaryrefslogtreecommitdiff
path: root/Lib/distutils/command/install_lib.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-09-30 17:35:26 +0000
committerGreg Ward <gward@python.net>2000-09-30 17:35:26 +0000
commitdb22cdfc34203ec8008688d27c3ad6e27a97e7aa (patch)
treed30aa18a30e099fa3c83f514c87729518872c9b0 /Lib/distutils/command/install_lib.py
parent4c596c712388d4417b9e237fd91d194a01f329fe (diff)
downloadcpython-db22cdfc34203ec8008688d27c3ad6e27a97e7aa.tar.gz
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
Diffstat (limited to 'Lib/distutils/command/install_lib.py')
-rw-r--r--Lib/distutils/command/install_lib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py
index a603b4f59e..2c92f3fe4a 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 ()