diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-03-31 15:53:49 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-03-31 15:53:49 (GMT) |
commit | 0b27ff92d2127ed39f52d9987e4e96313937cbc8 (patch) | |
tree | 4ff172e7da1f1f0f233854f279d7f50850961eed /setup.py | |
parent | aca44e277170fed72668ba18430c8b53c7f6f499 (diff) | |
download | cpython-0b27ff92d2127ed39f52d9987e4e96313937cbc8.zip cpython-0b27ff92d2127ed39f52d9987e4e96313937cbc8.tar.gz cpython-0b27ff92d2127ed39f52d9987e4e96313937cbc8.tar.bz2 |
SF patch #712367, get build working on AIX
configure change is necessary to pass "." to makexp_aix so that
dynamic modules work
setup change gets curses working
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -413,6 +413,8 @@ class PyBuildExt(build_ext): if self.compiler.find_library_file(lib_dirs, 'ncurses'): readline_libs.append('ncurses') + elif self.compiler.find_library_file(lib_dirs, 'curses'): + readline_libs.append('curses') elif self.compiler.find_library_file(lib_dirs + ['/usr/lib/termcap'], 'termcap'): @@ -654,8 +656,10 @@ class PyBuildExt(build_ext): # the _curses module. if (self.compiler.find_library_file(lib_dirs, 'terminfo')): curses_libs = ['curses', 'terminfo'] - else: + elif (self.compiler.find_library_file(lib_dirs, 'termcap')): curses_libs = ['curses', 'termcap'] + else: + curses_libs = ['curses'] exts.append( Extension('_curses', ['_cursesmodule.c'], libraries = curses_libs) ) |