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
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 # Copyright 2024 Marcel Telka
16 %patch% 01-illumos-architecture.patch
17 %patch% 02-no-stdc.patch
18 %patch% 03-test-strtod_l.patch
19 %patch% 04-msvccompiler.patch
20 %patch% 05-test-float32.patch
21 %patch% 06-no-shebang.patch
24 # NumPy Tests must be run outside source directory so switch to the proto area
25 COMPONENT_TEST_DIR = $(PROTO_DIR)/$(PYTHON_LIB)
27 # https://github.com/numpy/numpy/issues/27670
28 # https://www.illumos.org/issues/5346
29 PYTEST_ADDOPTS += --deselect numpy/_core/tests/test_longdouble.py::test_str_roundtrip
30 PYTEST_ADDOPTS += --deselect numpy/_core/tests/test_print.py::TestCommaDecimalPointLocale::test_locale_longdouble
31 PYTEST_ADDOPTS += --deselect numpy/lib/tests/test_function_base.py::TestPercentile::test_linear_interpolation[inverted_cdf-False-20-longdouble-longdouble-quantile-0.4]
32 PYTEST_ADDOPTS += --deselect numpy/lib/tests/test_function_base.py::TestPercentile::test_linear_interpolation[averaged_inverted_cdf-False-27.5-longdouble-longdouble-quantile-0.4]
34 # https://www.illumos.org/issues/16874
35 PYTEST_ADDOPTS += --deselect numpy/_core/tests/test_umath.py::TestSpecialFloats::test_exp2