1 From 4b7c45c756dccfd3b5ece36fe572042353d1c2f0 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Tue, 7 Mar 2017 22:30:56 +0100
4 Subject: [PATCH] Do not install the idle editor
6 IDLE is the Python IDE built with the tkinter GUI toolkit. Since it's
7 highly unlikely to ever be useful in an embedded Linux system
8 generated by Buildroot, this patch simply disables the installation of
9 idle and the related Python modules. It saves 800 KB-900 KB of
12 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 Makefile.pre.in | 2 --
16 2 files changed, 1 insertion(+), 3 deletions(-)
18 diff --git a/Makefile.pre.in b/Makefile.pre.in
19 index 2582574..3cfc590 100644
22 @@ -1045,7 +1045,6 @@ LIBSUBDIRS= site-packages \
24 logging csv importlib wsgiref \
25 ctypes ctypes/macholib \
26 - idlelib idlelib/Icons \
27 distutils distutils/command \
28 multiprocessing multiprocessing/dummy \
30 @@ -1060,7 +1059,6 @@ TESTSUBDIRS = test test/audiodata test/capath test/data \
31 email/test email/test/data \
38 diff --git a/setup.py b/setup.py
39 index c68f6b4..8045a9b 100644
42 @@ -2234,7 +2234,7 @@ def main():
44 warnings.filterwarnings("ignore",category=DeprecationWarning)
46 - scripts = ['Tools/scripts/idle', 'Lib/smtpd.py']
47 + scripts = ['Lib/smtpd.py']
48 if not '--disable-pydoc' in sysconfig.get_config_var("CONFIG_ARGS"):
49 scripts += [ 'Tools/scripts/pydoc' ]
50 if not '--disable-lib2to3' in sysconfig.get_config_var("CONFIG_ARGS"):