libgtk3: bump version to 3.22.11
[buildroot-gz.git] / package / python / 0030-Do-not-install-the-idle-editor.patch
blob60e64c885fa4938637670f0cb674884362b0facd
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
10 installed .pyc files.
12 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 ---
14 Makefile.pre.in | 2 --
15 setup.py | 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
20 --- a/Makefile.pre.in
21 +++ b/Makefile.pre.in
22 @@ -1045,7 +1045,6 @@ LIBSUBDIRS= site-packages \
23 json \
24 logging csv importlib wsgiref \
25 ctypes ctypes/macholib \
26 - idlelib idlelib/Icons \
27 distutils distutils/command \
28 multiprocessing multiprocessing/dummy \
29 unittest \
30 @@ -1060,7 +1059,6 @@ TESTSUBDIRS = test test/audiodata test/capath test/data \
31 email/test email/test/data \
32 json/tests \
33 ctypes/test \
34 - idlelib/idle_test \
35 distutils/tests \
36 unittest/test
38 diff --git a/setup.py b/setup.py
39 index c68f6b4..8045a9b 100644
40 --- a/setup.py
41 +++ b/setup.py
42 @@ -2234,7 +2234,7 @@ def main():
43 import warnings
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"):
51 --
52 2.7.4