mirror of
https://github.com/python/cpython.git
synced 2025-09-16 21:56:14 +00:00
[Patch #772077 from Tim Rice] Fix for compiling the readline module on UnixWare; fix goofy comment indent. 2.3 bugfix candidate
This commit is contained in:
parent
10a444965d
commit
7883dc8abb
1 changed files with 3 additions and 3 deletions
6
setup.py
6
setup.py
|
@ -278,8 +278,8 @@ class PyBuildExt(build_ext):
|
||||||
inc_dirs += ['/system/include', '/atheos/autolnk/include']
|
inc_dirs += ['/system/include', '/atheos/autolnk/include']
|
||||||
inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
|
inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
|
||||||
|
|
||||||
# OSF/1 has some stuff in /usr/ccs/lib (like -ldb)
|
# OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb)
|
||||||
if platform == 'osf1':
|
if platform in ['osf1', 'unixware7', 'openunix8']:
|
||||||
lib_dirs += ['/usr/ccs/lib']
|
lib_dirs += ['/usr/ccs/lib']
|
||||||
|
|
||||||
# Check for MacOS X, which doesn't need libm.a at all
|
# Check for MacOS X, which doesn't need libm.a at all
|
||||||
|
@ -420,7 +420,7 @@ class PyBuildExt(build_ext):
|
||||||
library_dirs=['/usr/lib/termcap'],
|
library_dirs=['/usr/lib/termcap'],
|
||||||
libraries=readline_libs) )
|
libraries=readline_libs) )
|
||||||
if platform not in ['mac']:
|
if platform not in ['mac']:
|
||||||
# crypt module.
|
# crypt module.
|
||||||
|
|
||||||
if self.compiler.find_library_file(lib_dirs, 'crypt'):
|
if self.compiler.find_library_file(lib_dirs, 'crypt'):
|
||||||
libs = ['crypt']
|
libs = ['crypt']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue