mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Python on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)
to load extension modules and now provides the dl module. As a result, sys.setdlopenflags() now works correctly on these systems. (SF patch #1454844)
This commit is contained in:
parent
a50794b620
commit
8220174489
7 changed files with 17 additions and 8 deletions
2
setup.py
2
setup.py
|
@ -969,7 +969,7 @@ class PyBuildExt(build_ext):
|
|||
if sys.maxint == 0x7fffffff:
|
||||
# This requires sizeof(int) == sizeof(long) == sizeof(char*)
|
||||
dl_inc = find_file('dlfcn.h', [], inc_dirs)
|
||||
if (dl_inc is not None) and (platform not in ['atheos', 'darwin']):
|
||||
if (dl_inc is not None) and (platform not in ['atheos']):
|
||||
exts.append( Extension('dl', ['dlmodule.c']) )
|
||||
|
||||
# Thomas Heller's _ctypes module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue