0030-Do-not-install-the-idle-editor.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. From e789487c783f75c17a8951bd5324c86ceefde407 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
  5. IDLE is the Python IDE built with the tkinter GUI toolkit. Since it's
  6. highly unlikely to ever be useful in an embedded Linux system
  7. generated by Buildroot, this patch simply disables the installation of
  8. idle and the related Python modules. It saves 800 KB-900 KB of
  9. installed .pyc files.
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. [Peter: update for 2.7.16]
  12. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  13. ---
  14. Makefile.pre.in | 2 --
  15. setup.py | 2 +-
  16. 2 files changed, 1 insertion(+), 3 deletions(-)
  17. diff --git a/Makefile.pre.in b/Makefile.pre.in
  18. index a0473096c1..750057fb96 100644
  19. --- a/Makefile.pre.in
  20. +++ b/Makefile.pre.in
  21. @@ -1055,7 +1055,6 @@ LIBSUBDIRS= site-packages \
  22. json \
  23. logging csv importlib wsgiref \
  24. ctypes ctypes/macholib \
  25. - idlelib idlelib/Icons \
  26. distutils distutils/command \
  27. multiprocessing multiprocessing/dummy \
  28. unittest \
  29. @@ -1071,7 +1070,6 @@ TESTSUBDIRS = test test/audiodata test/capath test/data \
  30. email/test email/test/data \
  31. json/tests \
  32. ctypes/test \
  33. - idlelib/idle_test \
  34. distutils/tests \
  35. unittest/test
  36. diff --git a/setup.py b/setup.py
  37. index f439cbadc2..227187681e 100644
  38. --- a/setup.py
  39. +++ b/setup.py
  40. @@ -2278,7 +2278,7 @@ def main():
  41. import warnings
  42. warnings.filterwarnings("ignore",category=DeprecationWarning)
  43. - scripts = ['Tools/scripts/idle', 'Lib/smtpd.py']
  44. + scripts = ['Lib/smtpd.py']
  45. if not '--disable-pydoc' in sysconfig.get_config_var("CONFIG_ARGS"):
  46. scripts += [ 'Tools/scripts/pydoc' ]
  47. if not '--disable-lib2to3' in sysconfig.get_config_var("CONFIG_ARGS"):
  48. --
  49. 2.11.0