mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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()
|
||||
|
||||
# (Optionally) compile .py to .pyc
|
||||
if outfiles is not None:
|
||||
if outfiles is not None and self.distribution.has_pure_modules():
|
||||
self.bytecompile(outfiles)
|
||||
|
||||
# run ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue