Skip to content

Commit

Permalink
Use the correct python lib directory to install python libraries
Browse files Browse the repository at this point in the history
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 <aline.manera@gmail.com>
  • Loading branch information
alinefm committed Dec 4, 2019
1 parent 28384e4 commit b35d21b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ AC_SUBST([PYTHON_VERSION])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.10])
AC_PATH_PROG([CHEETAH], [cheetah], [/usr/bin/cheetah])
AC_SUBST([pythondir],
[m4_esyscmd([python3 -c "import distutils.sysconfig as sys; print(sys.get_python_lib())"])])

# Checking for pyflakes
AC_PATH_PROG([PYFLAKES], [pyflakes])
Expand Down

0 comments on commit b35d21b

Please sign in to comment.