[Buildroot] [git commit master] python: Don't delete .py files unless asked.

Will Newton will.newton at gmail.com
Mon Sep 21 15:42:22 UTC 2009


commit: http://git.buildroot.net/buildroot/commit/?id=0c2b9a4a2df1d42ab8ebfaf340bbfeeed1268c48
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

If we have set BR2_PACKAGE_PYTHON_PY_ONLY or BR2_PACKAGE_PYTHON_PY_PYC
we want .py files to be left on the target, whatever the value of
BR2_PACKAGE_PYTHON_DEV.

Signed-off-by: Will Newton <will.newton at gmail.com>
---
 package/python/python.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/package/python/python.mk b/package/python/python.mk
index cd1ccec..95586ad 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -155,7 +155,6 @@ endif
 ifneq ($(BR2_PACKAGE_PYTHON_DEV),y)
 	rm -rf $(TARGET_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
 	rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/config
-	find $(TARGET_DIR)/usr/lib/ -name '*.py' -exec rm {} \;
 endif
 ifneq ($(BR2_PACKAGE_PYTHON_BSDDB),y)
 	rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/bsddb
-- 
1.6.3.3




More information about the buildroot mailing list