--- a/make-rules/setup.py.mk Sat May 04 09:50:55 2013 -0700
+++ b/make-rules/setup.py.mk Wed May 08 10:41:41 2013 -0700
@@ -18,7 +18,7 @@
#
# CDDL HEADER END
#
-# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
#
$(BUILD_DIR)/%-2.6/.built: PYTHON_VERSION=2.6
@@ -111,3 +111,7 @@
clean::
$(RM) -r $(SOURCE_DIR) $(BUILD_DIR)
+
+# 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)