The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / python / 114-remove-idle-editor.patch
1 Do not install the idle editor
2
3 IDLE is the Python IDE built with the tkinter GUI toolkit. Since it's
4 highly unlikely to ever be useful in an embedded Linux system
5 generated by Buildroot, this patch simply disables the installation of
6 idle and the related Python modules. It saves 800 KB-900 KB of
7 installed .pyc files.
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
11 Index: b/Makefile.pre.in
12 ===================================================================
13 --- a/Makefile.pre.in
14 +++ b/Makefile.pre.in
15 @@ -967,7 +967,6 @@
16                 json \
17                 logging csv importlib wsgiref \
18                 ctypes ctypes/macholib \
19 -               idlelib idlelib/Icons \
20                 distutils distutils/command \
21                 multiprocessing multiprocessing/dummy \
22                 unittest \
23 @@ -982,7 +981,6 @@
24         email/test email/test/data \
25         json/tests \
26         ctypes/test \
27 -       idlelib/idle_test \
28         distutils/tests \
29         unittest/test
30  
31 Index: b/setup.py
32 ===================================================================
33 --- a/setup.py
34 +++ b/setup.py
35 @@ -2223,7 +2223,7 @@
36      import warnings
37      warnings.filterwarnings("ignore",category=DeprecationWarning)
38  
39 -    scripts = ['Tools/scripts/idle', 'Lib/smtpd.py']
40 +    scripts = ['Lib/smtpd.py']
41      if not '--disable-pydoc' in sysconfig.get_config_var("CONFIG_ARGS"):
42          scripts += [ 'Tools/scripts/pydoc' ]
43      if not '--disable-lib2to3' in sysconfig.get_config_var("CONFIG_ARGS"):