make-rules/setup.py.mk
changeset 30 440b6ca0641d
parent 25 48e1871bcdcd
child 31 90e0c3ea3281
--- a/make-rules/setup.py.mk	Wed Jul 21 12:59:53 2010 -0500
+++ b/make-rules/setup.py.mk	Wed Aug 11 09:18:07 2010 -0700
@@ -36,10 +36,16 @@
 	$(COMPONENT_POST_BUILD_ACTION)
 	$(TOUCH) [email protected]
 
+# The default is site-packages, but that directory belongs to the end-user.
+# Modules which are shipped by the OS but not with the core Python distribution
+# belong in vendor-packages.
+PYTHON_LIB= /usr/lib/python$(PYTHON_VERSION)/vendor-packages
+
 # install the built source into a prototype area
 $(COMPONENT_SRC)/build-%/.installed:	$(COMPONENT_SRC)/build-%/.built
 	$(COMPONENT_PRE_INSTALL_ACTION)
 	(cd $(COMPONENT_SRC) ; $(ENV) $(PYTHON_ENV) \
-		$(PYTHON.$(BITS)) ./setup.py install --root $(PROTO_DIR))
+		$(PYTHON.$(BITS)) ./setup.py install --root $(PROTO_DIR) \
+			--install-lib=$(PYTHON_LIB))
 	$(COMPONENT_POST_INSTALL_ACTION)
 	$(TOUCH) [email protected]