3.44.0 tarball has broken Python's install directory
Hi there!
The latest Alacarte release tarball, version 3.44.0
, breaks openSUSE's Alacarte build because it wants, now, to install all the Python stuff under /Alacarte/
rather than /usr/lib/python3.8/site-packages/Alacarte/
.
I noticed that aclocal.m4
had this change:
--- alacarte-3.42.0/aclocal.m4
+++ alacarte-3.44.0/aclocal.m4
@@ -2126,7 +2126,11 @@
am_cv_python_pyexecdir=`$PYTHON -c "
$am_python_setup_sysconfig
if can_use_sysconfig:
- sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
+ scheme = sysconfig.get_default_scheme()
+ if scheme == 'posix_local':
+ # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
+ scheme = 'posix_prefix'
+ sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
else:
from distutils import sysconfig
sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
The issue here is sysconfig.get_default_scheme()
, where _get_default_scheme()
only had its name changed to get_default_scheme()
in Python 3.10
release.
So we should either use _get_default_scheme()
, or make a Python version check to set the correct function name, or something else.