Wrong LIBDIR reported on PyPy 3.8
The location of sysconfigdata.py has moved from <install dir>/lib_pypy/_sysconfigdata.py
to <install_dir>/lib/pypy3.8/_sysconfigdata.py
. As a result PyPy 3.8 reports sysconfig.get_config_var("LIBDIR")
to be the non-existent directory <install dir>/lib/bin
.
I think means that an extra os.path.dirname()
call is needed to resolve the pypy install dir correctly on the Python 3.8 branch.
diff -r e558566298b2 lib_pypy/_sysconfigdata.py
--- a/lib_pypy/_sysconfigdata.py Sat Oct 23 14:10:55 2021 +0200
+++ b/lib_pypy/_sysconfigdata.py Sat Oct 23 22:42:44 2021 +0100
@@ -6,7 +6,7 @@
so_ext = _imp.extension_suffixes()[0]
-mybase = os.path.dirname(os.path.dirname(__file__))
+mybase = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
# FIXME: The compiler-specific values should be exported from the build,
# perhaps via a special __pypy__._sysconfigdata module?
... I tried hard to figure out a way to open this fix as a merge request, but for the life of me couldn't figure out how.