mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
This commit is contained in:
parent
e564278bfd
commit
3e6d43801b
1 changed files with 2 additions and 1 deletions
|
|
@ -56,7 +56,8 @@ class install_lib (Command):
|
||||||
outfiles = self.install()
|
outfiles = self.install()
|
||||||
|
|
||||||
# (Optionally) compile .py to .pyc
|
# (Optionally) compile .py to .pyc
|
||||||
self.bytecompile(outfiles)
|
if outfiles is not None:
|
||||||
|
self.bytecompile(outfiles)
|
||||||
|
|
||||||
# run ()
|
# run ()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue