-- allow packaging of thrift as an rpm

Summary:
- also allows development as a non-root user
- contributed by Ben Maurer

Reviewed By: marc

Test Plan: "compile", install


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665185 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/py/Makefile.am b/lib/py/Makefile.am
index 579a3eb..27d1115 100644
--- a/lib/py/Makefile.am
+++ b/lib/py/Makefile.am
@@ -1,2 +1,4 @@
+DESTDIR ?= /
+
 install-exec-hook:
-	$(PYTHON) setup.py install
+	$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) $(PYTHON_SETUPUTIL_ARGS)