Skip to content

python + sysconfig gives ANOTHER path comparing to distutils #895

Description

@socketpair
$ python3 
Python 3.11.3 (main, May 24 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils.sysconfig
>>> print(distutils.sysconfig.get_python_lib(1,0))
/usr/lib64/python3.11/site-packages
>>> import sysconfig
>>> print(sysconfig.get_path("platlib"))
/usr/local/lib64/python3.11/site-packages

So, the changes around #769 make AGAIN

error: pythonmod: cannot initialize core module: unboundmodule.py

Is it possible not to hardcode (at ./configure stage and then in Makefile) the path at all ?

https://bugzilla.redhat.com/show_bug.cgi?id=2213996
mesonbuild/meson#10459 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions