1 Add an option to disable IDLE
3 IDLE is an IDE embedded into python, written using Tk, so it doesn't make
4 much sense to have it into our build.
6 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
9 Makefile.pre.in | 8 +++++++-
10 configure.ac | 6 ++++++
12 3 files changed, 16 insertions(+), 2 deletions(-)
14 Index: b/Makefile.pre.in
15 ===================================================================
19 -rm -f $(DESTDIR)$(LIBPC)/python3.pc
20 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python3.pc)
21 -rm -f $(DESTDIR)$(BINDIR)/idle3
23 (cd $(DESTDIR)$(BINDIR); $(LN) -s idle$(VERSION) idle3)
25 -rm -f $(DESTDIR)$(BINDIR)/pydoc3
27 (cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3)
29 html json http dbm xmlrpc \
30 logging csv wsgiref urllib \
31 ctypes ctypes/macholib \
32 - idlelib idlelib/Icons \
33 distutils distutils/command \
36 @@ -1226,6 +1227,10 @@
37 LIBSUBDIRS += $(XMLLIBSUBDIRS)
41 +LIBSUBDIRS += idlelib idlelib/Icons
44 ifeq (@TEST_MODULES@,yes)
45 LIBSUBDIRS += $(TESTSUBDIRS)
48 ===================================================================
51 @@ -2746,6 +2746,12 @@
52 AS_HELP_STRING([--disable-lib2to3], [disable lib2to3]),
53 [ LIB2TO3="${enableval}" ], [ LIB2TO3=yes ])
58 + AS_HELP_STRING([--disable-idle3], [disable idle3 IDE]),
59 + [ IDLE="${enableval}" ], [ IDLE=yes ])
61 # Check for enable-ipv6
62 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified])
63 AC_MSG_CHECKING([if --enable-ipv6 is specified])
65 ===================================================================
68 @@ -2201,11 +2201,13 @@
70 warnings.filterwarnings("ignore",category=DeprecationWarning)
72 - scripts = ['Tools/scripts/idle3', 'Lib/smtpd.py']
73 + scripts = ['Lib/smtpd.py']
74 if not '--disable-pydoc' in sysconfig.get_config_var("CONFIG_ARGS"):
75 scripts += [ 'Tools/scripts/pydoc3' ]
76 if not '--disable-lib2to3' in sysconfig.get_config_var("CONFIG_ARGS"):
77 scripts += [ 'Tools/scripts/2to3' ]
78 + if not '--disable-idle3' in sysconfig.get_config_var("CONFIG_ARGS"):
79 + scripts += [ 'Tools/scripts/idle3' ]
81 setup(# PyPI Metadata (PEP 301)