diff options
| -rw-r--r-- | meta/recipes-devtools/python/python3/reformat_sysconfig.py | 2 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.9.6.bb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3/reformat_sysconfig.py b/meta/recipes-devtools/python/python3/reformat_sysconfig.py index c4164313e8..5e2b12879d 100644 --- a/meta/recipes-devtools/python/python3/reformat_sysconfig.py +++ b/meta/recipes-devtools/python/python3/reformat_sysconfig.py | |||
| @@ -16,6 +16,6 @@ with open(sys.argv[1], 'r') as f: | |||
| 16 | with open(sys.argv[1], 'w') as f: | 16 | with open(sys.argv[1], 'w') as f: |
| 17 | for k in sorted(l.keys()): | 17 | for k in sorted(l.keys()): |
| 18 | f.write('%s = ' % k) | 18 | f.write('%s = ' % k) |
| 19 | pprint.pprint(l[k], stream=f, width=sys.maxsize) | 19 | pprint.pprint(l[k], stream=f, width=1) |
| 20 | f.write('\n') | 20 | f.write('\n') |
| 21 | 21 | ||
diff --git a/meta/recipes-devtools/python/python3_3.9.6.bb b/meta/recipes-devtools/python/python3_3.9.6.bb index f04bfc3053..aae7837180 100644 --- a/meta/recipes-devtools/python/python3_3.9.6.bb +++ b/meta/recipes-devtools/python/python3_3.9.6.bb | |||
| @@ -161,6 +161,10 @@ do_install:append:class-native() { | |||
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | do_install:append() { | 163 | do_install:append() { |
| 164 | for c in ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py; do | ||
| 165 | python3 ${WORKDIR}/reformat_sysconfig.py $c | ||
| 166 | done | ||
| 167 | |||
| 164 | mkdir -p ${D}${libdir}/python-sysconfigdata | 168 | mkdir -p ${D}${libdir}/python-sysconfigdata |
| 165 | sysconfigfile=`find ${D} -name _sysconfig*.py` | 169 | sysconfigfile=`find ${D} -name _sysconfig*.py` |
| 166 | cp $sysconfigfile ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py | 170 | cp $sysconfigfile ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py |
