make-rules/setup.py.mk
changeset 99 c15c9099bb44
parent 62 519e6e3788ce
child 146 8e22ba234817
--- a/make-rules/setup.py.mk	Tue Feb 22 10:12:42 2011 -0800
+++ b/make-rules/setup.py.mk	Wed Feb 23 10:37:11 2011 -0800
@@ -35,14 +35,16 @@
 INSTALL_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.installed)
 INSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
 
+PYTHON_ENV =	CC="$(CC)"
+PYTHON_ENV +=	CFLAGS="$(CFLAGS)"
+
 # build the configured source
 $(BUILD_DIR)/%/.built:	$(SOURCE_DIR)/.prep
 	$(RM) -r $(@D) ; $(MKDIR) $(@D)
 	$(COMPONENT_PRE_BUILD_ACTION)
 	(cd $(SOURCE_DIR) ; $(ENV) $(PYTHON_ENV) \
 		$(PYTHON.$(BITS)) ./setup.py build \
-			--build-temp $(@D:$(BUILD_DIR)/%=%) \
-			$(COMPONENT_INSTALL_ARGS))
+			--build-temp $(@D:$(BUILD_DIR)/%=%))
 	$(COMPONENT_POST_BUILD_ACTION)
 	$(TOUCH) [email protected]
 
@@ -62,3 +64,5 @@
 	$(COMPONENT_POST_INSTALL_ACTION)
 	$(TOUCH) [email protected]
 
+clean::
+	$(RM) -r $(SOURCE_DIR) $(BUILD_DIR)