Silence byte compile errors when installation succeed.

Fixes #1873.
Cover more cases.
Add show_stderr parameter to call_subprocess.
Revert show_stderr=False to investigate test failures.
Strip tracebacks.
py2 fixes
another try
Merge pull request #1984 from berkerpeksag/fix-1873

Silence byte compile errors when installation succeed.