make-rules/setup.py.mk
changeset 3998 5bd484384122
parent 3864 77a09e73626b
child 4091 fca9099ab398
equal deleted inserted replaced
3997:0ca3f3d6c919 3998:5bd484384122
    15 # If applicable, add the following below this CDDL HEADER, with the
    15 # If applicable, add the following below this CDDL HEADER, with the
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
       
    20 #
       
    21 
    20 #
    22 #
    21 # Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
    22 #
    24 #
    23 
    25 
    24 # $ (foreach suffix,$(VERSIONS),$(eval include $(WS_MAKE_RULES)/python-$(suffix).mk))
    26 # $ (foreach suffix,$(VERSIONS),$(eval include $(WS_MAKE_RULES)/python-$(suffix).mk))
   102 	-$(PARFAIT) $(@D)
   104 	-$(PARFAIT) $(@D)
   103 endif
   105 endif
   104 	$(TOUCH) $@
   106 	$(TOUCH) $@
   105 
   107 
   106 
   108 
   107 COMPONENT_INSTALL_ARGS +=	--root $(PROTO_DIR) 
   109 COMPONENT_INSTALL_ARGS +=	--root $(PROTO_DIR)
   108 COMPONENT_INSTALL_ARGS +=	--install-lib=$(PYTHON_LIB)
   110 COMPONENT_INSTALL_ARGS +=	--install-lib=$(PYTHON_LIB)
   109 COMPONENT_INSTALL_ARGS +=	--install-purelib=$(PYTHON_LIB)
   111 COMPONENT_INSTALL_ARGS +=	--install-purelib=$(PYTHON_LIB)
   110 COMPONENT_INSTALL_ARGS +=	--install-platlib=$(PYTHON_LIB)
   112 COMPONENT_INSTALL_ARGS +=	--install-platlib=$(PYTHON_LIB)
   111 COMPONENT_INSTALL_ARGS +=	--install-data=$(PYTHON_DATA)
   113 COMPONENT_INSTALL_ARGS +=	--install-data=$(PYTHON_DATA)
   112 COMPONENT_INSTALL_ARGS +=	--force
   114 COMPONENT_INSTALL_ARGS +=	--force
   180 endif
   182 endif
   181 
   183 
   182 clean::
   184 clean::
   183 	$(RM) -r $(SOURCE_DIR) $(BUILD_DIR)
   185 	$(RM) -r $(SOURCE_DIR) $(BUILD_DIR)
   184 
   186 
   185 # Make it easy to construct a URL for a pypi source download.
   187 # Make it easy to construct a URL for a pypi source download.  This
       
   188 # construct supports an optional call to a number from
       
   189 # NUM_EXTRA_ARCHIVES for multiple archive downloads.
   186 PYPI_BASE = http://pypi.python.org/packages/source
   190 PYPI_BASE = http://pypi.python.org/packages/source
   187 pypi_url = $(PYPI_BASE)/$(shell echo $(COMPONENT_NAME) | cut -c1)/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
   191 pypi_url_multi = $(shell echo $(COMPONENT_NAME_$(1)) | cut -c1)/$(COMPONENT_NAME_$(1))/$(COMPONENT_ARCHIVE_$(1))
       
   192 pypi_url_single = $(shell echo $(COMPONENT_NAME) | cut -c1)/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
       
   193 pypi_url = $(PYPI_BASE)/$(if $(COMPONENT_NAME_$(1)),$(pypi_url_multi),$(pypi_url_single))
   188 
   194 
   189 ifneq ($(findstring 2.6, $(PYTHON_VERSIONS)),)
   195 ifneq ($(findstring 2.6, $(PYTHON_VERSIONS)),)
   190 REQUIRED_PACKAGES += runtime/python-26
   196 REQUIRED_PACKAGES += runtime/python-26
   191 endif
   197 endif
   192 ifneq ($(findstring 2.7, $(PYTHON_VERSIONS)),)
   198 ifneq ($(findstring 2.7, $(PYTHON_VERSIONS)),)