[oe-commits] MiLo : python-twisted: Create a separate source code package and bin package

git at git.openembedded.org git at git.openembedded.org
Wed Feb 4 16:11:51 UTC 2015


Module: meta-openembedded.git
Branch: master-next
Commit: bcbec599a7f4076cc040b1ca6c5bb66ad009cb6e
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=bcbec599a7f4076cc040b1ca6c5bb66ad009cb6e

Author: MiLo <milo-software at users.sourceforge.net>
Date:   Tue Jan 27 19:34:53 2015 +0100

python-twisted: Create a separate source code package and bin package

Python-twisted installs about 1MB of ".py" files that are not actually
being used for anything. To save on flash space on devices, move the
source code into its own package.

This modification has been in use for several years in the OpenPLi project,
which heavily leans on twisted for the GUI and web interfaces, and did not
cause any problems.

Move the /usr/bin/ scripts into their own package as well. Installing
python-twisted will still install these scripts.

Signed-off-by: Mike Looijmans <milo-software at users.sourceforge.net>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-python/recipes-devtools/python/python-twisted_13.2.0.bb | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-twisted_13.2.0.bb b/meta-python/recipes-devtools/python/python-twisted_13.2.0.bb
index 8930169..2b433f7 100644
--- a/meta-python/recipes-devtools/python/python-twisted_13.2.0.bb
+++ b/meta-python/recipes-devtools/python/python-twisted_13.2.0.bb
@@ -38,7 +38,13 @@ PACKAGES += "\
     ${PN}-core \
 "
 
+PACKAGES =+ "\
+    ${PN}-src \
+    ${PN}-bin \
+"
+
 RDEPENDS_${PN} = "\
+    ${PN}-bin \
     ${PN}-conch \
     ${PN}-lore \
     ${PN}-mail \
@@ -233,3 +239,9 @@ ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \
 ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \
 "
 
+RDEPENDS_{PN}-src = "${PN}"
+FILES_${PN}-src = " \
+	${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py \
+	${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*.py \
+	${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/*.py \
+	"



More information about the Openembedded-commits mailing list