From e13c3201fb66c4c211b4ebb7604d1435bedc1015 Mon Sep 17 00:00:00 2001 From: Xavier de Gaye Date: Tue, 13 Dec 2016 16:04:14 +0100 Subject: Issue #28190: Cross compiling the _curses module does not use anymore /usr/include/ncursesw as a headers search path. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 116f06fb22..7cb1141dac 100644 --- a/setup.py +++ b/setup.py @@ -1349,7 +1349,8 @@ class PyBuildExt(build_ext): panel_library = 'panel' if curses_library == 'ncursesw': curses_defines.append(('HAVE_NCURSESW', '1')) - curses_includes.append('/usr/include/ncursesw') + if not cross_compiling: + curses_includes.append('/usr/include/ncursesw') # Bug 1464056: If _curses.so links with ncursesw, # _curses_panel.so must link with panelw. panel_library = 'panelw' -- cgit v1.2.1