diff options
author | Greg Ward <gward@python.net> | 2000-09-30 17:35:26 +0000 |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-09-30 17:35:26 +0000 |
commit | db22cdfc34203ec8008688d27c3ad6e27a97e7aa (patch) | |
tree | d30aa18a30e099fa3c83f514c87729518872c9b0 /Lib/distutils/command/install_lib.py | |
parent | 4c596c712388d4417b9e237fd91d194a01f329fe (diff) | |
download | cpython-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.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 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 () |