make-rules/setup.py.mk
changeset 62 519e6e3788ce
parent 59 7500d63edb42
child 99 c15c9099bb44
--- a/make-rules/setup.py.mk	Thu Jan 20 14:23:47 2011 -0800
+++ b/make-rules/setup.py.mk	Mon Jan 24 13:48:56 2011 -0800
@@ -41,7 +41,8 @@
 	$(COMPONENT_PRE_BUILD_ACTION)
 	(cd $(SOURCE_DIR) ; $(ENV) $(PYTHON_ENV) \
 		$(PYTHON.$(BITS)) ./setup.py build \
-			--build-temp $(@D:$(BUILD_DIR)/%=%))
+			--build-temp $(@D:$(BUILD_DIR)/%=%) \
+			$(COMPONENT_INSTALL_ARGS))
 	$(COMPONENT_POST_BUILD_ACTION)
 	$(TOUCH) [email protected]
 
@@ -50,11 +51,14 @@
 # belong in vendor-packages.
 PYTHON_LIB= /usr/lib/python$(PYTHON_VERSION)/vendor-packages
 
+COMPONENT_INSTALL_ARGS +=	--root $(PROTO_DIR) 
+COMPONENT_INSTALL_ARGS +=	--install-lib=$(PYTHON_LIB)
+
 # install the built source into a prototype area
 $(BUILD_DIR)/%/.installed:	$(BUILD_DIR)/%/.built
 	$(COMPONENT_PRE_INSTALL_ACTION)
-	(cd $(SOURCE_DIR) ; $(ENV) $(PYTHON_ENV) \
-		$(PYTHON.$(BITS)) ./setup.py install --root $(PROTO_DIR) \
-			--install-lib=$(PYTHON_LIB))
+	(cd $(SOURCE_DIR) ; $(ENV) $(COMPONENT_INSTALL_ENV) \
+		$(PYTHON.$(BITS)) ./setup.py install $(COMPONENT_INSTALL_ARGS))
 	$(COMPONENT_POST_INSTALL_ACTION)
 	$(TOUCH) [email protected]
+