python-cryptography: bump to version 1.7.2
[buildroot-gz.git] / package / python / 105-optional-curses.patch
blob9e1ac5ad54c6cd365ef0ae28bf999e95b14f4dba
1 Add an option to disable the curses module
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
6 ---
7 Makefile.pre.in | 6 +++++-
8 configure.in | 9 +++++++++
9 2 files changed, 14 insertions(+), 1 deletion(-)
11 Index: b/Makefile.pre.in
12 ===================================================================
13 --- a/Makefile.pre.in
14 +++ b/Makefile.pre.in
15 @@ -972,7 +972,7 @@
16 multiprocessing multiprocessing/dummy \
17 unittest \
18 lib-old \
19 - curses $(MACHDEPS)
20 + $(MACHDEPS)
22 TESTSUBDIRS = test test/audiodata test/capath test/data \
23 test/cjkencodings test/decimaltestdata test/xmltestdata \
24 @@ -1014,6 +1014,10 @@
25 lib-tk/test/test_ttk
26 endif
28 +ifeq (@CURSES@,yes)
29 +LIBSUBDIRS += curses
30 +endif
32 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
33 @for i in $(SCRIPTDIR) $(LIBDEST); \
34 do \
35 Index: b/configure.ac
36 ===================================================================
37 --- a/configure.ac
38 +++ b/configure.ac
39 @@ -2651,6 +2651,15 @@
40 DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
43 +AC_SUBST(CURSES)
44 +AC_ARG_ENABLE(curses,
45 + AS_HELP_STRING([--disable-curses], [disable curses]),
46 + [ CURSES="${enableval}" ], [ CURSES=yes ])
48 +if test "$CURSES" = "no"; then
49 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"
50 +fi
52 AC_SUBST(PYDOC)
54 AC_ARG_ENABLE(pydoc,