Comment 3 for bug 1408092

Revision history for this message
astro (bernard-godard) wrote :

Additionally if for some reason the sysconfig module cannot be used, automake scripts will fallback to using distutils.sysconfig like this:

distutils.sysconfig.get_python_lib(1,0,prefix=$prefix))

The result of this is (Ubuntu 16.04):
 /usr/local/lib/python3/dist-packages

This is correctly set to dist-packages. However, sys.path contains /usr/local/lib/python3.5/dist-packages not /usr/local/lib/python3/dist-packages
Hence the modules are not installed in the correct path unless a symlink python3->python3.5 is manually made.