python (3.10) dirs

Jakub Bogusz qboosh at pld-linux.org
Mon Apr 18 20:29:27 CEST 2022


After recent python3.10 changes meson started to use /usr/share for
purelib, but automake's pythondir is broken now:

pythondir (platform-indepdendent) is wrong:

$ python2 -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='/usr'))"
/usr/share/python2.7/site-packages

$ python3 -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='/usr'))"
/usr/lib/python3.10/site-packages

pyexecdir is OK:

$ python2 -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='/usr'))"
/usr/lib64/python2.7/site-packages

$ python3 -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='/usr'))"
/usr/lib64/python3.10/site-packages


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list