Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1acc69

Browse files
committed
From 'run()', only call 'bytecompile()' if we actually have
pure Python modules to compile.
1 parent f217e21 commit c1acc69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/command/install_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def run (self):
5757
outfiles = self.install()
5858

5959
# (Optionally) compile .py to .pyc
60-
if outfiles is not None:
60+
if outfiles is not None and self.distribution.has_pure_modules():
6161
self.bytecompile(outfiles)
6262

6363
# run ()

0 commit comments

Comments
 (0)