chromium: Precompile pycs instead of deleting.
This is more of an attempt rather than a real fix (or maybe it is? let's see) for the corrupted .pyc files during build. I believe the reason we get these are likely due to several instances of the Python interpreter that run in parallel and one of these processes might still be writing the .pyc file. So, rather than deleting all .pyc files, we now precompile then in order to avoid any build process trying to generate any .pyc file. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
8127edc335
commit
597373bbd5
@ -186,11 +186,13 @@ let
|
||||
} // (extraAttrs.gypFlags or {}));
|
||||
|
||||
configurePhase = ''
|
||||
# Precompile .pyc files to prevent race conditions during build
|
||||
python -m compileall -q -f . || : # ignore errors
|
||||
|
||||
# This is to ensure expansion of $out.
|
||||
libExecPath="${libExecPath}"
|
||||
python build/linux/unbundle/replace_gyp_files.py ${gypFlags}
|
||||
python build/gyp_chromium -f ninja --depth "$(pwd)" ${gypFlags}
|
||||
find . -iname '*.py[co]' -delete
|
||||
'';
|
||||
|
||||
buildPhase = let
|
||||
|
Loading…
Reference in New Issue
Block a user