make-rules/ips.mk
changeset 1609 87293f3666a2
parent 1432 d90238e58d20
child 1756 3579365335ef
--- a/make-rules/ips.mk	Tue Dec 17 18:32:08 2013 -0700
+++ b/make-rules/ips.mk	Tue Dec 17 21:59:26 2013 -0800
@@ -91,6 +91,8 @@
 PKG_MACROS +=		COMPONENT_HG_REV=$(COMPONENT_HG_REV)
 PKG_MACROS +=		COMPONENT_NAME=$(COMPONENT_NAME)
 PKG_MACROS +=		TPNO=$(TPNO)
+PKG_MACROS +=		PYTHON_2.6_ONLY=\#
+PKG_MACROS +=		PYTHON_2.7_ONLY=\#
 
 PKG_OPTIONS +=		$(PKG_MACROS:%=-D %)
 
@@ -173,6 +175,8 @@
 # Define and execute a macro that generates a rule to create a manifest for a
 # python module specific to a particular version of the python runtime.
 define python-manifest-rule
+$(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).mogrified: PKG_MACROS += PYTHON_$(1)_ONLY=
+
 $(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).p5m: %-PYVER.p5m
 	$(PKGMOGRIFY) -D PYVER=$(1) -D PYV=$(shell echo $(1) | tr -d .) $$< > [email protected]
 endef