Package: python3.6
Version: 3.6.7~rc1-1
On 3.7, the python.m4 automake macro reports the site path as
./usr/lib/x86_64-linux-gnu/python3.6/site-packages. This causes all
sorts of interesting installation issues.
Looking into the situation the python.m4 macro uses
if can_use_sysconfig:
sitedir = sysconfig.get_path('purelib',
vars={'base':'$am_py_prefix'})
else:
from distutils import sysconfig
sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
Now, sysconfig seems to be broken:
>>> import sysconfig
>>> sysconfig.get_path('purelib', vars={'base':'/usr/local'})
'/usr/local/lib/python3.6/site-packages'
while distutils.sysconfig actually is fine:
>>> from distutils import sysconfig
>>> sysconfig.get_python_lib(0, 0, prefix='/usr/local')
'/usr/local/lib/python3/dist-packages'
Since I cannot see that python.m4 does anything wrong here I file the
issue against python.
Regards,
Alec Leamas