33 sha256:16c612ac01b9b5a31967e231c7f7d32b7263f151d5e3c617c69378170054805f |
33 sha256:16c612ac01b9b5a31967e231c7f7d32b7263f151d5e3c617c69378170054805f |
34 COMPONENT_ARCHIVE_URL= $(call pypi_url) |
34 COMPONENT_ARCHIVE_URL= $(call pypi_url) |
35 COMPONENT_PROJECT_URL= http://github.com/xattr/xattr |
35 COMPONENT_PROJECT_URL= http://github.com/xattr/xattr |
36 COMPONENT_BUGDB= python-mod/xattr |
36 COMPONENT_BUGDB= python-mod/xattr |
37 |
37 |
38 include $(WS_TOP)/make-rules/prep.mk |
38 TPNO= 16912 |
39 include $(WS_TOP)/make-rules/setup.py.mk |
39 |
40 include $(WS_TOP)/make-rules/ips.mk |
40 include $(WS_MAKE_RULES)/prep.mk |
|
41 include $(WS_MAKE_RULES)/setup.py.mk |
|
42 include $(WS_MAKE_RULES)/ips.mk |
41 |
43 |
42 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
44 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
43 |
45 |
44 # Look over into the pycparser and cffi proto areas until they're available in |
46 COMPONENT_INSTALL_ENV += PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB) |
45 # the build environment. Make sure that cffi is built. |
47 COMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB) |
46 PYCPARSER = $(WS_COMPONENTS)/python/pycparser/build/prototype/$(MACH)/$(PYTHON_LIB) |
|
47 CFFI = $(WS_COMPONENTS)/python/cffi/build/prototype/$(MACH)/$(PYTHON_LIB) |
|
48 |
|
49 $(CFFI): |
|
50 (cd ../cffi; $(MAKE) install) |
|
51 |
|
52 PYTHONPATH_DEP = $(PYCPARSER):$(CFFI) |
|
53 COMPONENT_BUILD_ENV += PYTHONPATH=$(PYTHONPATH_DEP) |
|
54 COMPONENT_INSTALL_ENV += PYTHONPATH=$(PYTHONPATH_DEP):$(PROTO_DIR)/$(PYTHON_LIB) |
|
55 COMPONENT_TEST_ENV += PYTHONPATH=$(PYTHONPATH_DEP):$(PROTO_DIR)/$(PYTHON_LIB) |
|
56 # 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 |
57 # locale. |
49 # locale. |
58 COMPONENT_TEST_ENV += LC_CTYPE=en_US.UTF-8 |
50 COMPONENT_TEST_ENV += LC_CTYPE=en_US.UTF-8 |
59 COMPONENT_TEST_DIR = $(@D)/tests |
51 COMPONENT_TEST_DIR = $(@D)/tests |
60 COMPONENT_TEST_CMD = $(PYTHON) setup.py |
52 COMPONENT_TEST_CMD = $(PYTHON) setup.py |
69 # 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 |
70 # 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 |
71 # finding in PYTHONPATH. |
63 # finding in PYTHONPATH. |
72 COMPONENT_PRE_TEST_ACTION = $(CP) -r $(SOURCE_DIR) $(@D)/tests |
64 COMPONENT_PRE_TEST_ACTION = $(CP) -r $(SOURCE_DIR) $(@D)/tests |
73 |
65 |
74 $(BUILD_32_and_64): $(CFFI) |
|
75 |
|
76 # common targets |
66 # common targets |
77 build: $(BUILD_32_and_64) |
67 build: $(BUILD_32_and_64) |
78 |
68 |
79 install: $(INSTALL_32_and_64) |
69 install: $(INSTALL_32_and_64) |
80 |
70 |