mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
cleanup setup.py for curses options
This commit is contained in:
parent
5d7c9aba29
commit
aa35b00322
1 changed files with 9 additions and 10 deletions
13
setup.py
13
setup.py
|
@ -1166,20 +1166,19 @@ class PyBuildExt(build_ext):
|
||||||
else:
|
else:
|
||||||
missing.extend(['nis', 'resource', 'termios'])
|
missing.extend(['nis', 'resource', 'termios'])
|
||||||
|
|
||||||
curses_defines = []
|
|
||||||
if curses_library == 'ncursesw':
|
|
||||||
curses_defines.append(('HAVE_NCURSESW', '1'))
|
|
||||||
|
|
||||||
# Curses support, requiring the System V version of curses, often
|
# Curses support, requiring the System V version of curses, often
|
||||||
# provided by the ncurses library.
|
# provided by the ncurses library.
|
||||||
panel_library = 'panel'
|
curses_defines = []
|
||||||
curses_includes = []
|
curses_includes = []
|
||||||
if curses_library.startswith('ncurses'):
|
panel_library = 'panel'
|
||||||
if curses_library == 'ncursesw':
|
if curses_library == 'ncursesw':
|
||||||
|
curses_defines.append(('HAVE_NCURSESW', '1'))
|
||||||
|
curses_includes.append('/usr/include/ncursesw')
|
||||||
# Bug 1464056: If _curses.so links with ncursesw,
|
# Bug 1464056: If _curses.so links with ncursesw,
|
||||||
# _curses_panel.so must link with panelw.
|
# _curses_panel.so must link with panelw.
|
||||||
panel_library = 'panelw'
|
panel_library = 'panelw'
|
||||||
curses_includes = ['/usr/include/ncursesw']
|
|
||||||
|
if curses_library.startswith('ncurses'):
|
||||||
curses_libs = [curses_library]
|
curses_libs = [curses_library]
|
||||||
exts.append( Extension('_curses', ['_cursesmodule.c'],
|
exts.append( Extension('_curses', ['_cursesmodule.c'],
|
||||||
include_dirs=curses_includes,
|
include_dirs=curses_includes,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue