diff --git a/src/configure.ac b/src/configure.ac index 0ba74c1426a..ab8b4a08f53 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -1742,7 +1742,7 @@ AC_MSG_RESULT([$PYTHON_TK_VERSION]) fi AC_MSG_CHECKING(for site-package location) -SITEPY=`$PYTHON -c "import sysconfig; s=sysconfig.get_scheme_names(); print(next((sysconfig.get_path('platlib', m) for m in ('deb_system', 'rpm_prefix') if m in s), '/usr/lib/python3/dist-packages'))"` +SITEPY=`$PYTHON -c "import sysconfig; s=sysconfig.get_scheme_names(); print(next((sysconfig.get_path('platlib', m) for m in ('deb_system', 'rpm_prefix') if m in s), sysconfig.get_path('platlib')))"` AC_MSG_RESULT($SITEPY) if test "$BUILD_GUI" = "yes"; then