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.
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): lib/python3/ dist-packages
/usr/local/
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.