diff options
author | Greg Ward <gward@python.net> | 2000-09-30 17:35:26 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-09-30 17:35:26 (GMT) |
commit | 3e6d43801b9d8ec5e73588f52bac660e14257160 (patch) | |
tree | 4c6d118155369dcab22ceef1d32d2c98c3749d93 /Lib/distutils | |
parent | e564278bfdf7c3c5d72c9825d00ee90d1e406aaa (diff) | |
download | cpython-3e6d43801b9d8ec5e73588f52bac660e14257160.zip cpython-3e6d43801b9d8ec5e73588f52bac660e14257160.tar.gz cpython-3e6d43801b9d8ec5e73588f52bac660e14257160.tar.bz2 |
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/install_lib.py | 3 |
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 () |