summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-13 16:04:14 +0100
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-13 16:04:14 +0100
commite13c3201fb66c4c211b4ebb7604d1435bedc1015 (patch)
treed088f408f51f9b32a82c7e6a2d29c47b0d6dd1d1 /setup.py
parent3a4e989324cc1f75c9f749c9e1c20de2f43df6e3 (diff)
downloadcpython-git-e13c3201fb66c4c211b4ebb7604d1435bedc1015.tar.gz
Issue #28190: Cross compiling the _curses module does not use anymore
/usr/include/ncursesw as a headers search path.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
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'