diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-03 16:33:40 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-04 17:14:15 +0000 |
| commit | 345ed4cc9ded851b2cbcc1794c038a0080b6ed82 (patch) | |
| tree | a8290f9f96d8f273ce5d22be15f929241aaf5164 /meta/recipes-devtools/python/python3_3.10.2.bb | |
| parent | ed2ba22d108f79cc0f9e9aa555862158f61793ea (diff) | |
| download | poky-345ed4cc9ded851b2cbcc1794c038a0080b6ed82.tar.gz | |
python3: Drop opt1 and opt2 pyc files from target
These are only used with python when the -O or -OO options are passed
and I'm not aware of runtime use of that. They otherwise just waste a
ton of space.
(From OE-Core rev: 5ac7b8c030daf30b2be93abebfedbc36c395e6d7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.10.2.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.10.2.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3_3.10.2.bb b/meta/recipes-devtools/python/python3_3.10.2.bb index 41b7b92b34..e61b23c6a9 100644 --- a/meta/recipes-devtools/python/python3_3.10.2.bb +++ b/meta/recipes-devtools/python/python3_3.10.2.bb | |||
| @@ -189,6 +189,11 @@ do_install:append() { | |||
| 189 | # More info: http://benno.id.au/blog/2013/01/15/python-determinism | 189 | # More info: http://benno.id.au/blog/2013/01/15/python-determinism |
| 190 | rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_range.cpython* | 190 | rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_range.cpython* |
| 191 | rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_xml_etree.cpython* | 191 | rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_xml_etree.cpython* |
| 192 | |||
| 193 | # Remove the opt-1.pyc and opt-2.pyc files. They effectively waste space on embedded | ||
| 194 | # style targets as they're only used when python is called with the -O or -OO options | ||
| 195 | # which is rare. | ||
| 196 | find ${D} -name *opt-*.pyc -delete | ||
| 192 | } | 197 | } |
| 193 | 198 | ||
| 194 | do_install:append:class-nativesdk () { | 199 | do_install:append:class-nativesdk () { |
