1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00

Support custom prefix when installing Python module

Also fixes make distcheck.
This commit is contained in:
Nick Wellnhofer
2022-02-14 17:44:29 +01:00
parent 4608443695
commit 85a35ba068

View File

@@ -876,7 +876,7 @@ if test "$with_python" != "no" ; then
then
PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
else
PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
PYTHON_SITE_PACKAGES=$($PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_python_lib(True,False,"${exec_prefix}"))')
fi
fi
fi