make-rules/setup.py.mk
branchs11-update
changeset 3996 20c0f21bbe1e
parent 3789 137fdcb27c8e
child 4072 db0cec748ec0
--- a/make-rules/setup.py.mk	Thu Mar 19 14:35:58 2015 -0700
+++ b/make-rules/setup.py.mk	Thu Mar 19 20:44:31 2015 -0700
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
 #
 
 $(BUILD_DIR)/%-2.6/.built:		PYTHON_VERSION=2.6
@@ -146,3 +146,14 @@
 # Make it easy to construct a URL for a pypi source download.
 PYPI_BASE = http://pypi.python.org/packages/source
 pypi_url = $(PYPI_BASE)/$(shell echo $(COMPONENT_NAME) | cut -c1)/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
+
+ifneq ($(findstring 2.6, $(PYTHON_VERSIONS)),)
+REQUIRED_PACKAGES += runtime/python-26
+endif
+ifneq ($(findstring 2.7, $(PYTHON_VERSIONS)),)
+REQUIRED_PACKAGES += runtime/python-27
+endif
+ifneq ($(findstring 3.4, $(PYTHON_VERSIONS)),)
+REQUIRED_PACKAGES += runtime/python-34
+endif
+REQUIRED_PACKAGES += library/python/setuptools