# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # This file was automatically generated using the following command: # $WS_TOOLS/python-integrate-project -d python/Cython cython # BUILD_STYLE = setup.py include ../../../make-rules/shared-macros.mk COMPONENT_NAME = cython HUMAN_VERSION = 3.0.11 COMPONENT_SUMMARY = The Cython compiler for writing C extensions in the Python language. COMPONENT_PROJECT_URL = https://cython.org/ COMPONENT_ARCHIVE_HASH = \ sha256:7146dd2af8682b4ca61331851e6aebce9fe5158e75300343f80c07ca80b1faff COMPONENT_LICENSE = Apache-2.0 COMPONENT_LICENSE_FILE = LICENSE.txt include $(WS_MAKE_RULES)/common.mk # Use well known path for Cython cache directory COMPONENT_TEST_ENV += CYTHON_CACHE_DIR=$(@D)/.cython-cache-dir # Testing installs packages using pip so direct it to private directory COMPONENT_TEST_ENV += PYTHONUSERBASE=$(@D)/.python-user-base # Cleanup remnants from previous test run (if any) COMPONENT_PRE_TEST_ACTION += $(RM) -r $(@D)/.cython-cache-dir ; COMPONENT_PRE_TEST_ACTION += $(RM) -r $(@D)/.python-user-base ; # Normalize tmp dir name COMPONENT_TEST_TRANSFORMS += "-e 's|\(TEST_TMP/cycache-test\).\{8\}\(/src\).\{8\}/|\1\2/|g'" COMPONENT_TEST_TRANSFORMS += "-e 's|\(TEST_TMP/recythonize-test\).\{8\}\(/src\).\{8\}/|\1\2/|g'" # Normalize pointer COMPONENT_TEST_TRANSFORMS += "-e 's/\(Broken object at \)0x[a-f0-9]\{1,\}>/\1\$$(POINTER)>/g'" # Remove line with private path COMPONENT_TEST_TRANSFORMS += "-e '/^libgcov profiling error:/d'" # Remove profiling info COMPONENT_TEST_TRANSFORMS += "-e '/^Most expensive pipeline stages:/d'" # Normalize random temporary file name COMPONENT_TEST_TRANSFORMS += "-e 's|^\(/tmp/tmp\).\{8\}:|\1XXXXXXXX:|'" # Normalize random file name COMPONENT_TEST_TRANSFORMS += "-e 's/\(_cython_inline_\).\{40\}\.pyx/\1XXXXXXXX.pyx/'" # tox.ini does not specify test requirements TEST_REQUIREMENTS += test-requirements.txt # Auto-generated dependencies PYTHON_REQUIRED_PACKAGES += library/python/importlib-metadata PYTHON_REQUIRED_PACKAGES += library/python/setuptools PYTHON_REQUIRED_PACKAGES += runtime/python REQUIRED_PACKAGES += system/library TEST_REQUIRED_PACKAGES.python += library/python/coverage TEST_REQUIRED_PACKAGES.python += library/python/numpy TEST_REQUIRED_PACKAGES.python += library/python/pycodestyle TEST_REQUIRED_PACKAGES.python += library/python/setuptools