summaryrefslogtreecommitdiffstats
path: root/package/python/0030-Do-not-install-the-idle-editor.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-08 00:00:26 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-09 22:35:21 +0100
commit652076293235276e2f978fe377322a6cbd615455 (patch)
tree9de85c8771bbff3dc8dee18aa23e38b29c3cfa90 /package/python/0030-Do-not-install-the-idle-editor.patch
parent98b831b855559ba2bc3fcdccf9c29c4936008d12 (diff)
downloadbuildroot-652076293235276e2f978fe377322a6cbd615455.tar.gz
buildroot-652076293235276e2f978fe377322a6cbd615455.zip
python: move to Git formatted patches
Now that the cpython project has a nice Github repository, with tags, it's much nicer to handle the stack of Python patches with Git. The python3 package patches had already been converted, but not the python package patches. Therefore, this commit does the move. There is no functional change, only reformatting of the patches. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python/0030-Do-not-install-the-idle-editor.patch')
-rw-r--r--package/python/0030-Do-not-install-the-idle-editor.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/package/python/0030-Do-not-install-the-idle-editor.patch b/package/python/0030-Do-not-install-the-idle-editor.patch
new file mode 100644
index 0000000000..60e64c885f
--- /dev/null
+++ b/package/python/0030-Do-not-install-the-idle-editor.patch
@@ -0,0 +1,53 @@
+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
+
+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>
+---
+ Makefile.pre.in | 2 --
+ setup.py | 2 +-
+ 2 files changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/Makefile.pre.in b/Makefile.pre.in
+index 2582574..3cfc590 100644
+--- a/Makefile.pre.in
++++ b/Makefile.pre.in
+@@ -1045,7 +1045,6 @@ LIBSUBDIRS= site-packages \
+ json \
+ logging csv importlib wsgiref \
+ ctypes ctypes/macholib \
+- idlelib idlelib/Icons \
+ distutils distutils/command \
+ multiprocessing multiprocessing/dummy \
+ unittest \
+@@ -1060,7 +1059,6 @@ TESTSUBDIRS = test test/audiodata test/capath test/data \
+ email/test email/test/data \
+ json/tests \
+ ctypes/test \
+- idlelib/idle_test \
+ distutils/tests \
+ unittest/test
+
+diff --git a/setup.py b/setup.py
+index c68f6b4..8045a9b 100644
+--- a/setup.py
++++ b/setup.py
+@@ -2234,7 +2234,7 @@ def main():
+ 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"):
+--
+2.7.4
+
OpenPOWER on IntegriCloud