logrotate: enable selinux support
[buildroot-gz.git] / package / python / 114-remove-idle-editor.patch
blob512eedcb5fc2cc93fb9886527bd780388eda61eb
1 Do not install the idle editor
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.
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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
31 Index: b/setup.py
32 ===================================================================
33 --- a/setup.py
34 +++ b/setup.py
35 @@ -2212,7 +2212,7 @@
36 import warnings
37 warnings.filterwarnings("ignore",category=DeprecationWarning)
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"):