make-rules/setup.py.mk
changeset 1310 ed3f9d06a78b
parent 1293 98e5300bb391
child 1352 1358a1e1ff4c
equal deleted inserted replaced
1309:27b67da05e40 1310:ed3f9d06a78b
    31 $(BUILD_DIR)/$(MACH32)-%/.installed:	BITS=32
    31 $(BUILD_DIR)/$(MACH32)-%/.installed:	BITS=32
    32 $(BUILD_DIR)/$(MACH64)-%/.installed:	BITS=64
    32 $(BUILD_DIR)/$(MACH64)-%/.installed:	BITS=64
    33 
    33 
    34 BUILD_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.built)
    34 BUILD_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.built)
    35 BUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built)
    35 BUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built)
       
    36 BUILD_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.built)
    36 
    37 
    37 INSTALL_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.installed)
    38 INSTALL_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.installed)
    38 INSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
    39 INSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
       
    40 INSTALL_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.installed)
       
    41 
       
    42 TEST_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.tested)
    39 
    43 
    40 PYTHON_ENV =	CC="$(CC)"
    44 PYTHON_ENV =	CC="$(CC)"
    41 PYTHON_ENV +=	CFLAGS="$(CFLAGS)"
    45 PYTHON_ENV +=	CFLAGS="$(CFLAGS)"
       
    46 
       
    47 COMPONENT_BUILD_ENV += $(PYTHON_ENV)
       
    48 COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
       
    49 COMPONENT_TEST_ENV += $(PYTHON_ENV)
    42 
    50 
    43 # if we are building python 2.7 support, build it and install it first
    51 # if we are building python 2.7 support, build it and install it first
    44 # so that python 2.6 is installed last and is the canonical version.
    52 # so that python 2.6 is installed last and is the canonical version.
    45 # when we switch to 2.7 as the default, it should go last.
    53 # when we switch to 2.7 as the default, it should go last.
    46 ifneq ($(findstring 2.7,$(PYTHON_VERSIONS)),)
    54 ifneq ($(findstring 2.7,$(PYTHON_VERSIONS)),)
    59 
    67 
    60 # build the configured source
    68 # build the configured source
    61 $(BUILD_DIR)/%/.built:	$(SOURCE_DIR)/.prep $(BUILD_DIR)/config-%/$(CFG)
    69 $(BUILD_DIR)/%/.built:	$(SOURCE_DIR)/.prep $(BUILD_DIR)/config-%/$(CFG)
    62 	$(RM) -r $(@D) ; $(MKDIR) $(@D)
    70 	$(RM) -r $(@D) ; $(MKDIR) $(@D)
    63 	$(COMPONENT_PRE_BUILD_ACTION)
    71 	$(COMPONENT_PRE_BUILD_ACTION)
    64 	(cd $(SOURCE_DIR) ; $(ENV) HOME=$(BUILD_DIR)/config-$* $(PYTHON_ENV) \
    72 	(cd $(SOURCE_DIR) ; $(ENV) HOME=$(BUILD_DIR)/config-$* $(COMPONENT_BUILD_ENV) \
    65 		$(PYTHON.$(BITS)) ./setup.py build)
    73 		$(PYTHON.$(BITS)) ./setup.py build)
    66 	$(COMPONENT_POST_BUILD_ACTION)
    74 	$(COMPONENT_POST_BUILD_ACTION)
    67 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
    75 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
    68 	-$(PARFAIT) $(SOURCE_DIR)/$(@D:$(BUILD_DIR)/%=%)
    76 	-$(PARFAIT) $(SOURCE_DIR)/$(@D:$(BUILD_DIR)/%=%)
    69 endif
    77 endif