Skip to content

Commit b35d21b

Browse files
committed
Use the correct python lib directory to install python libraries
automake does not provide the python lib directory anymore which was dealing to install python modules in the wrong directory for Ubuntu. Use distutils as recommended by automake From aclocal.4 dnl pythondir -- where to install python scripts. This is the dnl site-packages directory, not the python standard library dnl directory like in previous automake betas. This behavior dnl is more consistent with lispdir.m4 for example. dnl Query distutils for this directory. Signed-off-by: Aline Manera <[email protected]>
1 parent 28384e4 commit b35d21b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configure.ac

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ AC_SUBST([PYTHON_VERSION])
5454
AM_GNU_GETTEXT([external])
5555
AM_GNU_GETTEXT_VERSION([0.10])
5656
AC_PATH_PROG([CHEETAH], [cheetah], [/usr/bin/cheetah])
57+
AC_SUBST([pythondir],
58+
[m4_esyscmd([python3 -c "import distutils.sysconfig as sys; print(sys.get_python_lib())"])])
5759

5860
# Checking for pyflakes
5961
AC_PATH_PROG([PYFLAKES], [pyflakes])

0 commit comments

Comments
 (0)