mirror of https://github.com/python/cpython
More fixes for building MacPython extension modules. It now actually succeeds
in building various modules.
This commit is contained in:
parent
3d9addd55a
commit
73aa1fff85
8
setup.py
8
setup.py
|
@ -309,6 +309,7 @@ class PyBuildExt(build_ext):
|
||||||
|
|
||||||
# fcntl(2) and ioctl(2)
|
# fcntl(2) and ioctl(2)
|
||||||
exts.append( Extension('fcntl', ['fcntlmodule.c']) )
|
exts.append( Extension('fcntl', ['fcntlmodule.c']) )
|
||||||
|
if platform not in ['mac']:
|
||||||
# pwd(3)
|
# pwd(3)
|
||||||
exts.append( Extension('pwd', ['pwdmodule.c']) )
|
exts.append( Extension('pwd', ['pwdmodule.c']) )
|
||||||
# grp(3)
|
# grp(3)
|
||||||
|
@ -338,12 +339,13 @@ class PyBuildExt(build_ext):
|
||||||
exts.append( Extension('cPickle', ['cPickle.c']) )
|
exts.append( Extension('cPickle', ['cPickle.c']) )
|
||||||
|
|
||||||
# Memory-mapped files (also works on Win32).
|
# Memory-mapped files (also works on Win32).
|
||||||
if platform not in ['atheos']:
|
if platform not in ['atheos', 'mac']:
|
||||||
exts.append( Extension('mmap', ['mmapmodule.c']) )
|
exts.append( Extension('mmap', ['mmapmodule.c']) )
|
||||||
|
|
||||||
# Lance Ellinghaus's modules:
|
# Lance Ellinghaus's modules:
|
||||||
# enigma-inspired encryption
|
# enigma-inspired encryption
|
||||||
exts.append( Extension('rotor', ['rotormodule.c']) )
|
exts.append( Extension('rotor', ['rotormodule.c']) )
|
||||||
|
if platform not in ['mac']:
|
||||||
# syslog daemon interface
|
# syslog daemon interface
|
||||||
exts.append( Extension('syslog', ['syslogmodule.c']) )
|
exts.append( Extension('syslog', ['syslogmodule.c']) )
|
||||||
|
|
||||||
|
@ -381,7 +383,7 @@ class PyBuildExt(build_ext):
|
||||||
exts.append( Extension('readline', ['readline.c'],
|
exts.append( Extension('readline', ['readline.c'],
|
||||||
library_dirs=['/usr/lib/termcap'],
|
library_dirs=['/usr/lib/termcap'],
|
||||||
libraries=readline_libs) )
|
libraries=readline_libs) )
|
||||||
|
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'):
|
||||||
|
@ -535,7 +537,7 @@ class PyBuildExt(build_ext):
|
||||||
dblib_dir = None
|
dblib_dir = None
|
||||||
|
|
||||||
# The standard Unix dbm module:
|
# The standard Unix dbm module:
|
||||||
if platform not in ['cygwin']:
|
if platform not in ['cygwin', 'mac']:
|
||||||
if (self.compiler.find_library_file(lib_dirs, 'ndbm')):
|
if (self.compiler.find_library_file(lib_dirs, 'ndbm')):
|
||||||
exts.append( Extension('dbm', ['dbmmodule.c'],
|
exts.append( Extension('dbm', ['dbmmodule.c'],
|
||||||
libraries = ['ndbm'] ) )
|
libraries = ['ndbm'] ) )
|
||||||
|
|
Loading…
Reference in New Issue