提交 e40aadbc authored 作者: Garming Sam's avatar Garming Sam

Allow module building to work with PyPy 3

The library .so file is named pypy3-c rather than pypy-c.
上级 674485e1
......@@ -1684,7 +1684,10 @@ def std_lib_dirs_and_libs():
else:
if platform.python_implementation() == 'PyPy':
# Assume Linux (note: Ubuntu doesn't ship this .so)
libname = "pypy-c"
if sys.version_info < (3,):
libname = "pypy-c"
else:
libname = "pypy3-c"
# Unfortunately the only convention of this .so is that it appears
# next to the location of the interpreter binary.
libdir = os.path.dirname(os.path.realpath(sys.executable))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论