24 # |
24 # |
25 |
25 |
26 include ../../../make-rules/shared-macros.mk |
26 include ../../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= cffi |
28 COMPONENT_NAME= cffi |
29 COMPONENT_VERSION= 0.8.2 |
29 COMPONENT_VERSION= 1.1.2 |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
32 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
33 sha256:8192393640f7bc304ce82669b35eb90592566a30abbb4924456f52079afc18e2 |
33 sha256:390970b602708c91ddc73953bb6929e56291c18a4d80f360afa00fad8b6f3339 |
34 COMPONENT_ARCHIVE_URL= $(call pypi_url) |
34 COMPONENT_ARCHIVE_URL= $(call pypi_url) |
35 COMPONENT_PROJECT_URL= http://cffi.readthedocs.org/ |
35 COMPONENT_PROJECT_URL= http://cffi.readthedocs.org/ |
36 COMPONENT_BUGDB= python-mod/cffi |
36 COMPONENT_BUGDB= python-mod/cffi |
37 |
37 |
38 TPNO= 16913 |
38 TPNO= 24051 |
39 |
39 |
40 include $(WS_MAKE_RULES)/prep.mk |
40 include $(WS_MAKE_RULES)/prep.mk |
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 |
50 COMPONENT_TEST_CMD = $(PYTHON.$(BITS)) /usr/bin/py.test-$(PYTHON_VERSION) |
50 COMPONENT_TEST_CMD = $(PYTHON.$(BITS)) /usr/bin/py.test-$(PYTHON_VERSION) |
51 COMPONENT_TEST_ARGS = --resultlog $(@D)/testresults |
51 COMPONENT_TEST_ARGS = --resultlog $(@D)/testresults |
52 COMPONENT_TEST_ARGS += -p no:codechecker |
52 COMPONENT_TEST_ARGS += -p no:codechecker |
53 COMPONENT_TEST_ARGS += $(TEST_SKIPS) |
53 COMPONENT_TEST_ARGS += $(TEST_SKIPS) |
54 COMPONENT_TEST_ARGS += c testing |
54 COMPONENT_TEST_ARGS += c testing |
55 # The following tests cause core dumps on SPARC (bus error, illegal hardware |
|
56 # instruction). We don't skip test_install_and_reload_module{,_package}, which |
|
57 # fail on both 64-bit platforms, since those don't cause the interpreter to |
|
58 # crash. |
|
59 $(BUILD_DIR)/sparcv7-%/.tested: TEST_SKIPS = -k "not test_callback_return_type and not test_struct_packed and not test_opaque_integer_as_function_result" |
|
60 $(BUILD_DIR)/sparcv9-%/.tested: TEST_SKIPS = -k "not test_callback and not test_a_lot_of_callbacks and not test_struct_packed and not test_opaque_integer_as_function_result and not test_wchar" |
|
61 |
55 |
62 # Copy the tests and a few of the source files they read into a scratch |
56 # Copy the tests and a few of the source files they read into a scratch |
63 # directory so running the tests don't leave turds in the source directory. |
57 # directory so running the tests don't leave turds in the source directory. |
64 COMPONENT_PRE_TEST_ACTION = \ |
58 COMPONENT_PRE_TEST_ACTION = \ |
65 $(MKDIR) $(@D)/tests/doc/source; \ |
59 $(MKDIR) $(@D)/tests/doc/source; \ |
66 $(CP) -r $(SOURCE_DIR)/c $(SOURCE_DIR)/testing $(@D)/tests; \ |
60 $(CP) -r $(SOURCE_DIR)/c $(SOURCE_DIR)/testing $(SOURCE_DIR)/cffi $(@D)/tests; \ |
67 $(CP) $(SOURCE_DIR)/setup.py $(@D)/tests; \ |
61 $(CP) $(SOURCE_DIR)/setup.py $(@D)/tests; \ |
68 $(CP) \ |
62 $(CP) \ |
69 $(SOURCE_DIR)/doc/source/conf.py \ |
63 $(SOURCE_DIR)/doc/source/conf.py \ |
70 $(SOURCE_DIR)/doc/source/index.rst \ |
64 $(SOURCE_DIR)/doc/source/index.rst \ |
|
65 $(SOURCE_DIR)/doc/source/installation.rst \ |
71 $(@D)/tests/doc/source |
66 $(@D)/tests/doc/source |
72 |
67 |
73 # common targets |
68 # common targets |
74 build: $(BUILD_32_and_64) |
69 build: $(BUILD_32_and_64) |
75 |
70 |