diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.5.4.bb')
-rw-r--r-- | meta/recipes-devtools/python/python3_3.5.4.bb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3_3.5.4.bb b/meta/recipes-devtools/python/python3_3.5.4.bb index 4c7a22527c..a94d0096f1 100644 --- a/meta/recipes-devtools/python/python3_3.5.4.bb +++ b/meta/recipes-devtools/python/python3_3.5.4.bb | |||
@@ -192,7 +192,18 @@ py_package_preprocess () { | |||
192 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | 192 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ |
193 | ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \ | 193 | ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \ |
194 | ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile \ | 194 | ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}/Makefile \ |
195 | ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py | 195 | ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py \ |
196 | ${PKGD}/${bindir}/python${PYTHON_BINABI}-config | ||
197 | |||
198 | # Recompile _sysconfigdata after modifying it | ||
199 | cd ${PKGD} | ||
200 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \ | ||
201 | -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py')" | ||
202 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \ | ||
203 | -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py', optimize=1)" | ||
204 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} \ | ||
205 | -c "from py_compile import compile; compile('./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py', optimize=2)" | ||
206 | cd - | ||
196 | } | 207 | } |
197 | 208 | ||
198 | # manual dependency additions | 209 | # manual dependency additions |