2013-05-29 10:36:57 +02:00
|
|
|
Add an option to disable IDLE
|
|
|
|
|
|
|
|
IDLE is an IDE embedded into python, written using Tk, so it doesn't make
|
|
|
|
much sense to have it into our build.
|
|
|
|
|
|
|
|
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
|
|
|
|
|
|
|
|
---
|
|
|
|
Makefile.pre.in | 8 +++++++-
|
|
|
|
configure.ac | 6 ++++++
|
|
|
|
setup.py | 4 +++-
|
|
|
|
3 files changed, 16 insertions(+), 2 deletions(-)
|
|
|
|
|
2014-02-18 21:40:01 +01:00
|
|
|
Index: b/Makefile.pre.in
|
2013-05-29 10:36:57 +02:00
|
|
|
===================================================================
|
2014-02-18 21:40:01 +01:00
|
|
|
--- a/Makefile.pre.in
|
|
|
|
+++ b/Makefile.pre.in
|
2014-12-28 21:54:52 +01:00
|
|
|
@@ -1100,7 +1100,9 @@
|
2013-05-29 10:36:57 +02:00
|
|
|
-rm -f $(DESTDIR)$(LIBPC)/python3.pc
|
|
|
|
(cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python3.pc)
|
|
|
|
-rm -f $(DESTDIR)$(BINDIR)/idle3
|
|
|
|
+ifeq (@IDLE@,yes)
|
|
|
|
(cd $(DESTDIR)$(BINDIR); $(LN) -s idle$(VERSION) idle3)
|
|
|
|
+endif
|
|
|
|
-rm -f $(DESTDIR)$(BINDIR)/pydoc3
|
|
|
|
ifeq (@PYDOC@,yes)
|
|
|
|
(cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3)
|
2014-12-28 21:54:52 +01:00
|
|
|
@@ -1148,7 +1150,6 @@
|
2013-05-29 10:36:57 +02:00
|
|
|
html json http dbm xmlrpc \
|
|
|
|
logging csv wsgiref urllib \
|
2014-02-18 21:40:01 +01:00
|
|
|
ctypes ctypes/macholib \
|
|
|
|
- idlelib idlelib/Icons \
|
2013-05-29 10:36:57 +02:00
|
|
|
distutils distutils/command \
|
|
|
|
importlib \
|
|
|
|
turtledemo \
|
2014-12-28 21:54:52 +01:00
|
|
|
@@ -1225,6 +1226,10 @@
|
2013-05-29 10:36:57 +02:00
|
|
|
LIBSUBDIRS += $(XMLLIBSUBDIRS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
+ifeq (@IDLE@,yes)
|
|
|
|
+LIBSUBDIRS += idlelib idlelib/Icons
|
|
|
|
+endif
|
|
|
|
+
|
2014-02-18 21:40:01 +01:00
|
|
|
ifeq (@TEST_MODULES@,yes)
|
|
|
|
LIBSUBDIRS += $(TESTSUBDIRS)
|
|
|
|
endif
|
|
|
|
Index: b/configure.ac
|
2013-05-29 10:36:57 +02:00
|
|
|
===================================================================
|
2014-02-18 21:40:01 +01:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2014-12-28 21:54:52 +01:00
|
|
|
@@ -2743,6 +2743,12 @@
|
2013-05-29 10:36:57 +02:00
|
|
|
AS_HELP_STRING([--disable-lib2to3], [disable lib2to3]),
|
|
|
|
[ LIB2TO3="${enableval}" ], [ LIB2TO3=yes ])
|
|
|
|
|
|
|
|
+AC_SUBST(IDLE)
|
|
|
|
+
|
|
|
|
+AC_ARG_ENABLE(idle3,
|
|
|
|
+ AS_HELP_STRING([--disable-idle3], [disable idle3 IDE]),
|
|
|
|
+ [ IDLE="${enableval}" ], [ IDLE=yes ])
|
|
|
|
+
|
|
|
|
# Check for enable-ipv6
|
|
|
|
AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified])
|
|
|
|
AC_MSG_CHECKING([if --enable-ipv6 is specified])
|
2014-02-18 21:40:01 +01:00
|
|
|
Index: b/setup.py
|
2013-05-29 10:36:57 +02:00
|
|
|
===================================================================
|
2014-02-18 21:40:01 +01:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
2014-12-28 21:54:52 +01:00
|
|
|
@@ -2213,11 +2213,13 @@
|
2013-05-29 10:36:57 +02:00
|
|
|
import warnings
|
|
|
|
warnings.filterwarnings("ignore",category=DeprecationWarning)
|
|
|
|
|
|
|
|
- scripts = ['Tools/scripts/idle3', 'Lib/smtpd.py']
|
|
|
|
+ scripts = ['Lib/smtpd.py']
|
|
|
|
if not '--disable-pydoc' in sysconfig.get_config_var("CONFIG_ARGS"):
|
|
|
|
scripts += [ 'Tools/scripts/pydoc3' ]
|
|
|
|
if not '--disable-lib2to3' in sysconfig.get_config_var("CONFIG_ARGS"):
|
|
|
|
scripts += [ 'Tools/scripts/2to3' ]
|
|
|
|
+ if not '--disable-idle3' in sysconfig.get_config_var("CONFIG_ARGS"):
|
|
|
|
+ scripts += [ 'Tools/scripts/idle3' ]
|
|
|
|
|
|
|
|
setup(# PyPI Metadata (PEP 301)
|
|
|
|
name = "Python",
|