[pypy-dev] Change how a pypy executable finds its lib-python/lib_pypy directories?

Armin Rigo arigo at tunes.org
Sat Sep 24 16:52:51 EDT 2016


Hi all,

Now PyPy looks for lib-python/lib_pypy starting from the (real)
location of its ``libpypy-c.so``, no longer from the ``pypy``
executable.

Linux distribution packagers, take note!  At a minimum, the
``libpypy-c.so`` must really be inside the path containing
``lib-python`` and ``lib_pypy``.  Of course, you can (and likely
should) also put a symlink to it from somewhere else.

It is what you had previously to do with the ``pypy`` executable.  Now
it must be done with ``libpypy-c.so`` instead (and you no longer have
to use a symlink for the ``pypy`` executable, as long as it finds its
``libpypy-c.so``).

If, instead, you edit PyPy to change the way it is installed, then
please take a moment to check that *embedding* works correctly.  Test
case:

https://bitbucket.org/cffi/cffi/raw/default/demo/embedding.py
https://bitbucket.org/cffi/cffi/raw/default/demo/embedding_test.c


A bientôt,

Armin.


More information about the pypy-dev mailing list