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