From 8623c2942ae9c7a9b76721f015434341ee1428d7 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 12 Nov 2014 23:24:30 +0200 Subject: [PATCH 1/2] python: update MAKE_FLAGS Signed-off-by: Alexandru Ardelean --- lang/python/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lang/python/Makefile b/lang/python/Makefile index bab6ce335..8573d76bd 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -71,8 +71,7 @@ define Package/python/description This package contains the (almost) full Python install. endef -MAKE_FLAGS:=\ - DESTDIR="$(PKG_INSTALL_DIR)" \ +MAKE_FLAGS+=\ CROSS_COMPILE=yes \ LD="$(TARGET_CC)" \ PGEN=pgen2 From ad9c57beaec48a7fd31a7a727b1f0823893d1dfc Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 12 Nov 2014 23:27:24 +0200 Subject: [PATCH 2/2] python: add distutils back (selectively) This patch reduces distutils from 1.7 MB to 0.7 MB. Signed-off-by: Alexandru Ardelean --- lang/python/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/python/Makefile b/lang/python/Makefile index 8573d76bd..39a1da622 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -148,7 +148,8 @@ endef define PyPackage/python/filespec +|/usr/lib/python$(PYTHON_VERSION) -|/usr/lib/python$(PYTHON_VERSION)/config --|/usr/lib/python$(PYTHON_VERSION)/distutils +-|/usr/lib/python$(PYTHON_VERSION)/distutils/cygwinccompiler.py +-|/usr/lib/python$(PYTHON_VERSION)/distutils/command/wininst* -|/usr/lib/python$(PYTHON_VERSION)/idlelib -|/usr/lib/python$(PYTHON_VERSION)/lib2to3 -|/usr/lib/python$(PYTHON_VERSION)/lib-tk