The .pyc files usually contain build path like: i586-poky-linux-gcc -m32 -march=i586 --sysroot=/buildarea/lyang1/test_p/tmp/sysroots/qemux86 And: _PYTHON_PROJECT_BASE=/buildarea/lyang1/test_p/tmp/work/i586-poky-linux/python/2.7.9-r1/build They are safe, so ignore them.
We need to do the investigation to find a way to replace build path with target path in .pyc/.pyo files.
The fix has been sent to oe-core mailing list, but no reply. I should resend it in 2.3.
Merged to oe-core commit 21f0c5a50e00ac34975d79fd48f08730d8f19b15 Author: Hongxu Jia <hongxu.jia@windriver.com> Date: Thu Jul 19 22:59:04 2018 +0800 distutils/setuptools, distutils3/setuptools3: improve reproducibility - Unify var-DISTUTILS_INSTALL_ARGS in distutils and setuptools - Supply "--root" directory to the "install" command, and use it as a prefix to strip off the purported filename encoded in bytecode files. (It strips build path prefix from .pyc files)