]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jun 2019 15:18:32 +0000 (16:18 +0100)
commitec8a2b310d5f0b42f60898a5c6d239949842b34c
tree16de387dc500052528dede2d9d8fa6732f25e1aa
parent808792122751714de3ba25e463fd8b2709581cfc
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>
meta/recipes-devtools/python/python3/reformat_sysconfig.py [new file with mode: 0644]
meta/recipes-devtools/python/python3_3.7.3.bb