rdm notes in duplicate Issue6138:
There is a bug here, of some sort. Either the .pydistutils.cfg file's
install clause should override the default --prefix somehow, or the
error message should indicate where the setting for 'home' and
'--prefix' came from to enable the user to debug the configuration. In
the latter case there would also need to be a way to explicitly tell
either make install or configure to ignore .pydistutils.cfg. In the
former case, an explicit --prefix passed to configure would need to
override .pydistutils.cfg.