提交 8daed0db authored 作者: Philippe Hamel's avatar Philippe Hamel

Fix for Macs Framework Python Installations

上级 50c5e6c1
...@@ -598,6 +598,11 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[] ...@@ -598,6 +598,11 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[]
#DSE This makes it easier to avoid problems with frameworks #DSE This makes it easier to avoid problems with frameworks
if sys.platform=='darwin' : if sys.platform=='darwin' :
preargs.extend(['-undefined','dynamic_lookup']) preargs.extend(['-undefined','dynamic_lookup'])
# for framework builds *only* we need to add these args
if 'Python.framework' in sys.prefix:
preargs.extend(['-framework','Python'])
else : else :
#DSE I don't think it's necessary to ever link against -lpython2.x but i left it in for non-osx #DSE I don't think it's necessary to ever link against -lpython2.x but i left it in for non-osx
libs = [libname] + libs libs = [libname] + libs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论