summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-09-30 17:35:26 (GMT)
committerGreg Ward <gward@python.net>2000-09-30 17:35:26 (GMT)
commit3e6d43801b9d8ec5e73588f52bac660e14257160 (patch)
tree4c6d118155369dcab22ceef1d32d2c98c3749d93
parente564278bfdf7c3c5d72c9825d00ee90d1e406aaa (diff)
downloadcpython-3e6d43801b9d8ec5e73588f52bac660e14257160.zip
cpython-3e6d43801b9d8ec5e73588f52bac660e14257160.tar.gz
cpython-3e6d43801b9d8ec5e73588f52bac660e14257160.tar.bz2
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
-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 a603b4f..2c92f3f 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 ()