LIBDIR has changed on PyPy 7.3.4
On PyPy 7.3.3, the sysconfig
var LIBDIR
used to point to the bin
subdirectory:
>>>> import sysconfig
>>>> sysconfig.get_config_var("LIBDIR")
'/home/david/pypy3.7-v7.3.3-linux64/bin'
This has changed to the lib
subdirectory in 7.3.4:
>>>> import sysconfig
>>>> sysconfig.get_config_var("LIBDIR")
'/home/david/pypy3.7-v7.3.4-linux64/lib'
This change wasn't documented in the release notes. I do agree the latter seems more correct. Looks like this commit was the cause: 162a16ff0156
The problem is that libpypy3-c.so
is still located in the bin
subdirectory. PyO3 was using LIBDIR
to locate libpypy3-c.so
, so now with the new PyPy release it can't find it.
I'm happy to be told that PyO3 was doing the wrong thing here (it may need to hard-code the bin
subdirectory as the library search path?). However this seemed like unintentional breakage so I wanted to flag here.