All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Looijmans <milo-software@users.sourceforge.net>
To: openembedded-devel@lists.openembedded.org
Cc: Mike Looijmans <milo-software@users.sourceforge.net>
Subject: [PATCH] python-twisted: Create a separate source code package and bin package
Date: Tue, 27 Jan 2015 19:34:53 +0100	[thread overview]
Message-ID: <1422383693-15316-1-git-send-email-milo-software@users.sourceforge.net> (raw)

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@users.sourceforge.net>
---
 .../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 \
+	"
-- 
1.7.9.5



                 reply	other threads:[~2015-01-27 18:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1422383693-15316-1-git-send-email-milo-software@users.sourceforge.net \
    --to=milo-software@users.sourceforge.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.