[oe] [meta-python][PATCH] python3-twisted: remove python3-twisted-src
Tomasz Meresiński
tomasz.meresinski at comarch.pl
Wed Feb 7 16:43:52 UTC 2018
In python2 .py files are not necessary when importing a module.
In python3 it's impossible to import without them.
Removing python3-twisted-src makes .py files appear in packages again.
Signed-off-by: Tomasz Meresiński<tomasz.meresinski at comarch.pl>
---
meta-python/recipes-devtools/python/python3-twisted_17.9.0.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-python/recipes-devtools/python/python3-twisted_17.9.0.bb b/meta-python/recipes-devtools/python/python3-twisted_17.9.0.bb
index dfb9d4a..6bd8c52 100644
--- a/meta-python/recipes-devtools/python/python3-twisted_17.9.0.bb
+++ b/meta-python/recipes-devtools/python/python3-twisted_17.9.0.bb
@@ -1,6 +1,8 @@
inherit pypi setuptools3
require python-twisted.inc
+PACKAGES_remove = "${PN}-src"
+
FILES_${PN}-core_append += " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/__pycache__ \
${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__pycache__/*pyc \
--
2.7.4
More information about the Openembedded-devel
mailing list