aboutsummaryrefslogtreecommitdiff
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
parentIssue #28759: Fix the tests that fail with PermissionError when run as (diff)
downloadcpython-e13c3201fb66c4c211b4ebb7604d1435bedc1015.tar.gz
cpython-e13c3201fb66c4c211b4ebb7604d1435bedc1015.tar.bz2
cpython-e13c3201fb66c4c211b4ebb7604d1435bedc1015.zip
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 116f06fb224..7cb1141dac7 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'