diff mbox series

[3/6] python: package .pyo files too

Message ID 20191127140030.7838-3-ross.burton@intel.com
State Accepted
Commit 1e0ef76dcccfa10cdf473670acd2c52332bb3412
Headers show
Series [1/6] python: no need to add HOSTPGEN | expand

Commit Message

Ross Burton Nov. 27, 2019, 2 p.m. UTC
The manifest parsing code was only adding .py and .pyc paths to FILES,
generalise the latter to .py? so it catches .pyo files too.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/recipes-devtools/python/python_2.7.17.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.20.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python_2.7.17.bb b/meta/recipes-devtools/python/python_2.7.17.bb
index ef5d5644812..5807f63db44 100644
--- a/meta/recipes-devtools/python/python_2.7.17.bb
+++ b/meta/recipes-devtools/python/python_2.7.17.bb
@@ -218,7 +218,7 @@  python(){
             d.appendVar('FILES_' + pypackage, ' ' + value)
             if include_pycs == '1':
                 if value.endswith('.py'):
-                    d.appendVar('FILES_' + pypackage, ' ' + value + 'c')
+                    d.appendVar('FILES_' + pypackage, ' ' + value + '?')
 
         for value in python_manifest[key]['rdepends']:
             # Make it work with or without $PN