[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

Christian Bachmaier report at bugs.python.org
Tue Feb 23 10:31:18 EST 2021


Christian Bachmaier <chris at infosun.fim.uni-passau.de> added the comment:

The same situation in Ubuntu development branch's package python3.9.2-0ubuntu2 .

Inserting the follwing

    if sysconfig.get_config_var('MULTIARCH'):
        masd = sysconfig.get_config_var('multiarchsubdir')
        if masd.startswith(os.sep):
            masd = masd[len(os.sep):]
        libdir = os.path.join(libdir, masd)

directly after line ~ 247 in freeze.py

    libdir = sysconfig.get_config_var('LIBDIR')

seems to fix the first problem.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43229>
_______________________________________


More information about the Python-bugs-list mailing list