diff --git a/sys/python.sh b/sys/python.sh index 98d64bf5be..1be1afd2dc 100755 --- a/sys/python.sh +++ b/sys/python.sh @@ -18,6 +18,7 @@ fi [ -n "${NOSUDO}" ] && SUDO= export PYTHON +export DESTDIR export PYTHON_VERSION export PYTHON_CONFIG echo "Using PYTHON_VERSION ${PYTHON_VERSION}" @@ -27,9 +28,9 @@ echo cd r2-bindings ./configure --prefix=${PREFIX} --enable=python || exit 1 -${SUDO} make install-vapi || exit 1 +${SUDO} make install-vapi DESTDIR=${DESTDIR} || exit 1 cd python make clean make PYTHON=${PYTHON} [ ! "$1" = --no-install ] && \ - ${SUDO} make install PYTHON=${PYTHON} PYTHON_VERSION=${PYTHON_VERSION} + ${SUDO} make install PYTHON=${PYTHON} PYTHON_VERSION=${PYTHON_VERSION} DESTDIR=${DESTDIR}