17599591 The Python tox module needs to be added to Userland (fix build)
authorRich Burridge <rich.burridge@oracle.com>
Tue, 17 Dec 2013 21:59:26 -0800
changeset 1609 87293f3666a2
parent 1608 ad73e8a08980
child 1610 d164df7a8b2d
17599591 The Python tox module needs to be added to Userland (fix build) 17599586 The Python webtest module needs to be added to Userland (fix build)
make-rules/ips.mk
--- 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 .) $$< > $$@
 endef