Use Python rather than Python.framework for linking
This commit is contained in:
parent
195b2c09de
commit
0cd0a9f778
2
setup.py
2
setup.py
@ -84,7 +84,7 @@ def init_env(debug=False, asan=False):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
fd = sysconfig.get_config_var('LIBDEST')
|
fd = sysconfig.get_config_var('LIBDEST')
|
||||||
fd = fd[:fd.index('/Python.framework')]
|
fd = fd[:fd.index('/Python.framework')]
|
||||||
pylib = ['-F', fd, '-framework', 'Python.framework']
|
pylib = ['-F' + fd, '-framework', 'Python']
|
||||||
else:
|
else:
|
||||||
lib = sysconfig.get_config_var('LDLIBRARY')
|
lib = sysconfig.get_config_var('LDLIBRARY')
|
||||||
if lib.startswith('lib'):
|
if lib.startswith('lib'):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user