Index: aclocal.m4 =================================================================== --- aclocal.m4.orig +++ aclocal.m4 @@ -786,7 +786,7 @@ python2.1 python2.0 python1.6 python1.5] dnl doesn't work. AC_CACHE_CHECK([for $am_display_PYTHON script directory], [am_cv_python_pythondir], - [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null || + [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0)" 2>/dev/null || echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`]) AC_SUBST([pythondir], [$am_cv_python_pythondir]) @@ -803,7 +803,7 @@ python2.1 python2.0 python1.6 python1.5] dnl doesn't work. AC_CACHE_CHECK([for $am_display_PYTHON extension module directory], [am_cv_python_pyexecdir], - [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null || + [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0)" 2>/dev/null || echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`]) AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) Index: nwnnsscomp/python/Makefile.am =================================================================== --- nwnnsscomp/python/Makefile.am.orig +++ nwnnsscomp/python/Makefile.am @@ -1,8 +1,8 @@ all-local: setup.py compiler.cpp __init__.py - $(PYTHON) setup.py build + $(PYTHON) setup.py --no-user-cfg build install-exec-local: - $(PYTHON) setup.py install --prefix=${DESTDIR}${prefix} + $(PYTHON) setup.py --no-user-cfg install --root=${DESTDIR} EXTRA_DIST = \ compiler.cpp \