[oe] [PATCH 3/3] python_2.6.5: tune python-distutils

Eric Bénard eric at eukrea.com
Thu Sep 9 16:07:13 UTC 2010


removing config/libpython2.6.a and distutils/command/win*
as suggested by cdricjulien.

Signed-off-by: Eric Bénard <eric at eukrea.com>
---
 recipes/python/python_2.6.5.bb |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/recipes/python/python_2.6.5.bb b/recipes/python/python_2.6.5.bb
index c144fee..ecd9f78 100644
--- a/recipes/python/python_2.6.5.bb
+++ b/recipes/python/python_2.6.5.bb
@@ -83,6 +83,12 @@ do_install() {
 	sed -i -e s,ccache,'$(CCACHE)', ${D}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
 }
 
+do_install_append() {
+	# remove unecessary files from python-distutils' packages
+	rm ${D}/${libdir}/python${PYTHON_MAJMIN}/config/libpython2.6.a
+	rm ${D}/${libdir}/python${PYTHON_MAJMIN}/distutils/command/win*
+}
+
 require python-${PYTHON_MAJMIN}-manifest.inc
 
 # manual dependency additions
-- 
1.6.3.3





More information about the Openembedded-devel mailing list