mirror of
https://github.com/python/cpython.git
synced 2025-10-23 07:02:24 +00:00
Don't disable building Mac-specific modules for a non-framework build:
whether they crash or not is not a matter of using a framework or not, but whether the code is run from an app bundle or not. And that it _can_ crash (instead of tracing back) is Apple's bug anyway, not ours.
This commit is contained in:
parent
d5169bad94
commit
05ced6aa76
1 changed files with 89 additions and 99 deletions
14
setup.py
14
setup.py
|
@ -694,20 +694,10 @@ class PyBuildExt(build_ext):
|
|||
exts.append( Extension('sunaudiodev', ['sunaudiodev.c']) )
|
||||
|
||||
if platform == 'darwin':
|
||||
# Mac OS X specific modules. Modules linked against the Carbon
|
||||
# framework are only built for framework-enabled Pythons. As
|
||||
# of MacOSX 10.1 importing the Carbon framework from a non-windowing
|
||||
# application (MacOSX server, not logged in on the console) may
|
||||
# result in Python crashing.
|
||||
#
|
||||
# I would like to trigger on WITH_NEXT_FRAMEWORK but that isn't
|
||||
# available here. This Makefile variable is also what the install
|
||||
# procedure triggers on.
|
||||
# Mac OS X specific modules.
|
||||
exts.append( Extension('_CF', ['cf/_CFmodule.c', 'cf/pycfbridge.c'],
|
||||
extra_link_args=['-framework', 'CoreFoundation']) )
|
||||
|
||||
framework = sysconfig.get_config_var('PYTHONFRAMEWORK')
|
||||
if framework:
|
||||
exts.append( Extension('gestalt', ['gestaltmodule.c'],
|
||||
extra_link_args=['-framework', 'Carbon']) )
|
||||
exts.append( Extension('MacOS', ['macosmodule.c'],
|
||||
|
@ -785,7 +775,7 @@ class PyBuildExt(build_ext):
|
|||
waste_incs = find_file("WASTE.h", [],
|
||||
['../'*n + 'waste/C_C++ Headers' for n in (0,1,2,3,4)])
|
||||
waste_libs = find_library_file(self.compiler, "WASTE", [],
|
||||
[ "../"*n + "waste/Static Libraries" for n in (0,1,2,3,4)])
|
||||
["../"*n + "waste/Static Libraries" for n in (0,1,2,3,4)])
|
||||
if waste_incs != None and waste_libs != None:
|
||||
(srcdir,) = sysconfig.get_config_vars('srcdir')
|
||||
exts.append( Extension('waste',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue