ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / python / Cython / Makefile
blob26a753d3f3746045404eb7524e7306d6cdda683b
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project -d python/Cython cython
17 BUILD_STYLE = setup.py
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME = cython
22 HUMAN_VERSION = 3.0.11
23 COMPONENT_SUMMARY = The Cython compiler for writing C extensions in the Python language.
24 COMPONENT_PROJECT_URL = https://cython.org/
25 COMPONENT_ARCHIVE_HASH = \
26 sha256:7146dd2af8682b4ca61331851e6aebce9fe5158e75300343f80c07ca80b1faff
27 COMPONENT_LICENSE = Apache-2.0
28 COMPONENT_LICENSE_FILE = LICENSE.txt
30 include $(WS_MAKE_RULES)/common.mk
32 # Use well known path for Cython cache directory
33 COMPONENT_TEST_ENV += CYTHON_CACHE_DIR=$(@D)/.cython-cache-dir
34 # Testing installs packages using pip so direct it to private directory
35 COMPONENT_TEST_ENV += PYTHONUSERBASE=$(@D)/.python-user-base
37 # Cleanup remnants from previous test run (if any)
38 COMPONENT_PRE_TEST_ACTION += $(RM) -r $(@D)/.cython-cache-dir ;
39 COMPONENT_PRE_TEST_ACTION += $(RM) -r $(@D)/.python-user-base ;
41 # Normalize tmp dir name
42 COMPONENT_TEST_TRANSFORMS += "-e 's|\(TEST_TMP/cycache-test\).\{8\}\(/src\).\{8\}/|\1\2/|g'"
43 COMPONENT_TEST_TRANSFORMS += "-e 's|\(TEST_TMP/recythonize-test\).\{8\}\(/src\).\{8\}/|\1\2/|g'"
44 # Normalize pointer
45 COMPONENT_TEST_TRANSFORMS += "-e 's/\(Broken object at \)0x[a-f0-9]\{1,\}>/\1\$$(POINTER)>/g'"
46 # Remove line with private path
47 COMPONENT_TEST_TRANSFORMS += "-e '/^libgcov profiling error:/d'"
48 # Remove profiling info
49 COMPONENT_TEST_TRANSFORMS += "-e '/^Most expensive pipeline stages:/d'"
50 # Normalize random temporary file name
51 COMPONENT_TEST_TRANSFORMS += "-e 's|^\(/tmp/tmp\).\{8\}:|\1XXXXXXXX:|'"
52 # Normalize random file name
53 COMPONENT_TEST_TRANSFORMS += "-e 's/\(_cython_inline_\).\{40\}\.pyx/\1XXXXXXXX.pyx/'"
55 # tox.ini does not specify test requirements
56 TEST_REQUIREMENTS += test-requirements.txt
58 # Auto-generated dependencies
59 PYTHON_REQUIRED_PACKAGES += library/python/importlib-metadata
60 PYTHON_REQUIRED_PACKAGES += library/python/setuptools
61 PYTHON_REQUIRED_PACKAGES += runtime/python
62 REQUIRED_PACKAGES += system/library
63 TEST_REQUIRED_PACKAGES.python += library/python/coverage
64 TEST_REQUIRED_PACKAGES.python += library/python/numpy
65 TEST_REQUIRED_PACKAGES.python += library/python/pycodestyle
66 TEST_REQUIRED_PACKAGES.python += library/python/setuptools