]> code.ossystems Code Review - openembedded-core.git/commit
python3: Reformat sysconfig
authorJoshua Watt <jpewhacker@gmail.com>
Fri, 21 Jun 2019 13:35:54 +0000 (08:35 -0500)
committerArmin Kuster <akuster808@gmail.com>
Sun, 10 Nov 2019 23:16:27 +0000 (15:16 -0800)
commit01e4409e81c3d037fcba82fbcb3273dd1118490b
treeb099802988a93beefe5e0eb2e340f0aaf35fcd6a
parent2f8086ce87bbb62ef971be4da80c2c2b9d8c9c66
python3: Reformat sysconfig

Reformats the sysconfig file when packaging. This file is output by
using the python pprint function. This function will wrap long lines at
80 characters by default, and will even split strings at whitespace
boundaries to do so, e.g.:

 'A': 'B is really'
    ' long'

This causes a problem for reproducibility however because there might be
lines of differing lengths depending on the build path. These
non-reproducible paths are removed, but their effect on string wrapping
from pprint remains.

To correct this, reformat the entire sysconfig file by re-printing using
pprint with an (effectively) unlimited line length.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/python/python3/reformat_sysconfig.py [new file with mode: 0644]
meta/recipes-devtools/python/python3_3.7.4.bb