[OE-core] [PATCH 4/6] python3-core: improve reproducibility
Burton, Ross
ross.burton at intel.com
Thu Feb 1 19:27:02 UTC 2018
On 12 January 2018 at 08:11, Hongxu Jia <hongxu.jia at windriver.com> wrote:
> + # Recompile _sysconfigdata after modifying it
> + cd ${PKGD}
> + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \
> + -c "from py_compile import compile;
> compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py')"
> + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \
> + -c "from py_compile import compile;
> compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py',
> optimize=1)"
> + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \
> + -c "from py_compile import compile;
> compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py',
> optimize=2)"
> + cd -
>
Do we really need to generate optimise=1 and optimise=2 variants for a file
which is just data?
I'd suggest something like this would be neater:
rm -f ${PKGD}/${libdir}/python*/__pycache__/_sysconfigdata.*
nativepython -m py_compile ${PKGD}/${libdir}/python*/_sysconfigdata.py
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180201/8d3da725/attachment-0002.html>
More information about the Openembedded-core
mailing list