Re: python (3.10) dirs
On Tue, 19 Apr 2022, Jan Rękorajski wrote: > On Mon, 18 Apr 2022, Jakub Bogusz wrote: > > > 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 > > What package version do you have? Python3 shows /usr/share for me: > > $ python3 -c "import sys; from distutils import sysconfig; > sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='/usr'))" ; echo ; rpm > -q python3 > :1: DeprecationWarning: The distutils package is deprecated and > slated for removal in Python 3.12. Use setuptools or check PEP 632 for > potential alternatives > :1: DeprecationWarning: The distutils.sysconfig module is deprecated, > use sysconfig instead > /usr/share/python3.10/site-packages > python3-3.10.4-5.x86_64 > > On a side note, distutils is deprecated... The problematic dir seems to be coming from /usr/share/python3.10/site-packages/distutils-precedence.pth from python3-setuptools-62.0.0-1.noarch. Plain python should return 'share' there. -- Jan Rękorajski| PLD/Linux SysAdm | bagginspld-linux.org | http://www.pld-linux.org/ ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: python (3.10) dirs
On Mon, 18 Apr 2022, Jakub Bogusz wrote: > 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 What package version do you have? Python3 shows /usr/share for me: $ python3 -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='/usr'))" ; echo ; rpm -q python3 :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead /usr/share/python3.10/site-packages python3-3.10.4-5.x86_64 On a side note, distutils is deprecated... -- Jan Rękorajski| PLD/Linux SysAdm | bagginspld-linux.org | http://www.pld-linux.org/ ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
python (3.10) dirs
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 Boguszhttp://qboosh.pl/ ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en