components/python/xattr/Makefile
branchs11-update
changeset 4072 db0cec748ec0
parent 3996 20c0f21bbe1e
child 4339 6501cf9c29f9
child 7811 9126e6f58cd8
equal deleted inserted replaced
4067:4be1f488dda8 4072:db0cec748ec0
    41 include $(WS_MAKE_RULES)/setup.py.mk
    41 include $(WS_MAKE_RULES)/setup.py.mk
    42 include $(WS_MAKE_RULES)/ips.mk
    42 include $(WS_MAKE_RULES)/ips.mk
    43 
    43 
    44 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    44 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    45 
    45 
    46 # Look over into the pycparser and cffi proto areas until they're available in
    46 COMPONENT_INSTALL_ENV +=	PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB)
    47 # the build environment.  Make sure that cffi is built.
    47 COMPONENT_TEST_ENV +=		PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB)
    48 PYCPARSER =		$(WS_COMPONENTS)/python/pycparser/build/prototype/$(MACH)/$(PYTHON_LIB)
       
    49 CFFI =			$(WS_COMPONENTS)/python/cffi/build/prototype/$(MACH)/$(PYTHON_LIB)
       
    50 
       
    51 $(CFFI):
       
    52 	(cd ../cffi; $(MAKE) install)
       
    53 
       
    54 PYTHONPATH_DEP =	$(PYCPARSER):$(CFFI)
       
    55 COMPONENT_BUILD_ENV +=	PYTHONPATH=$(PYTHONPATH_DEP)
       
    56 COMPONENT_INSTALL_ENV +=	PYTHONPATH=$(PYTHONPATH_DEP):$(PROTO_DIR)/$(PYTHON_LIB)
       
    57 COMPONENT_TEST_ENV +=	PYTHONPATH=$(PYTHONPATH_DEP):$(PROTO_DIR)/$(PYTHON_LIB)
       
    58 # The test suite wants to use some unicode filenames, which don't work in the C
    48 # The test suite wants to use some unicode filenames, which don't work in the C
    59 # locale.
    49 # locale.
    60 COMPONENT_TEST_ENV +=	LC_CTYPE=en_US.UTF-8
    50 COMPONENT_TEST_ENV +=	LC_CTYPE=en_US.UTF-8
    61 COMPONENT_TEST_DIR =	$(@D)/tests
    51 COMPONENT_TEST_DIR =	$(@D)/tests
    62 COMPONENT_TEST_CMD =	$(PYTHON) setup.py
    52 COMPONENT_TEST_CMD =	$(PYTHON) setup.py
    71 # to a target-specific directory and run the tests.  Note that this will also
    61 # to a target-specific directory and run the tests.  Note that this will also
    72 # rebuild the package, since it doesn't want to use what it should already be
    62 # rebuild the package, since it doesn't want to use what it should already be
    73 # finding in PYTHONPATH.
    63 # finding in PYTHONPATH.
    74 COMPONENT_PRE_TEST_ACTION = $(CP) -r $(SOURCE_DIR) $(@D)/tests
    64 COMPONENT_PRE_TEST_ACTION = $(CP) -r $(SOURCE_DIR) $(@D)/tests
    75 
    65 
    76 $(BUILD_32_and_64): $(CFFI)
       
    77 
       
    78 # common targets
    66 # common targets
    79 build:		$(BUILD_32_and_64)
    67 build:		$(BUILD_32_and_64)
    80 
    68 
    81 install:	$(INSTALL_32_and_64)
    69 install:	$(INSTALL_32_and_64)
    82 
    70