mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
From 'run()', only call 'bytecompile()' if we actually have
pure Python modules to compile.
This commit is contained in:
parent
f217e2124a
commit
c1acc69018
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class install_lib (Command):
|
||||||
outfiles = self.install()
|
outfiles = self.install()
|
||||||
|
|
||||||
# (Optionally) compile .py to .pyc
|
# (Optionally) compile .py to .pyc
|
||||||
if outfiles is not None:
|
if outfiles is not None and self.distribution.has_pure_modules():
|
||||||
self.bytecompile(outfiles)
|
self.bytecompile(outfiles)
|
||||||
|
|
||||||
# run ()
|
# run ()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue