[pypy-dev] Installation layout of the PyPy 3.8 Fedora package

Miro Hrončok mhroncok at redhat.com
Thu Jan 27 07:59:04 EST 2022


On 06. 12. 21 12:30, Miro Hrončok wrote:
> 2) Help make PyPy 3.9 more like CPython 3.9 in this regard.

So, this is now:

/usr
├── bin
│   ├── libpypy3.9-c.so
│   ├── pypy -> pypy3.9
│   ├── pypy3 -> pypy3.9
│   ├── pypy3.9
│   ├── python -> pypy3.9
│   ├── python3 -> pypy3.9
│   └── python3.9 -> pypy3.9
├── include
│   └── pypy3.9
│       └── *.h
└── lib64
     └── pypy3.9
         ├── *.py
         ├── */
         ├── *.pypy39-pp73-x86_64-linux-gnu.so
         ├── __pycache__
         │   ├── *.pypy39.opt-1.pyc
         │   └── *.pypy39.pyc
         └── site-packages/

That looks reasonable good -- everything is namespaced or a symbolic link.

The only remaining thing is libpypy3.9-c.so in /usr/bin.
I'd like to move it to /usr/lib64 where it will be found.

Technically, Fedora forbids an unversioned so file there.

https://docs.fedoraproject.org/en-US/packaging-guidelines/#_downstream_so_name_versioning

CPython has libpython3.9.so.1.0.

$ objdump -p /usr/lib64/libpython3.9.so.1.0 | grep 'SONAME'
   SONAME               libpython3.9.so.1.0

Do you think PyPy can do this as well? Or is there a reason not to?

Thanks!
-- 
Miro Hrončok
-- 
Phone: +420777974800
IRC: mhroncok



More information about the pypy-dev mailing list