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-test-sorted-list.patch
19 # Testing needs to find pybind11
20 COMPONENT_TEST_ENV += CMAKE_PREFIX_PATH=$(shell /usr/bin/pybind11-config-$(PYTHON_VERSION) --cmakedir)
22 # This project does not support tox so we need to provide test requirements
24 TEST_REQUIREMENTS_EXTRAS += test
26 # When testing finds numpy already pre-installed it tries to install own copy
27 # of numpy using pip. This fails because of
28 # https://github.com/numpy/numpy/issues/25366
29 TEST_CONFLICTING_PACKAGES.python += library/python/numpy
30 # When pbr is installed the testing is failing because of the pkg_resources
32 # See also https://bugs.launchpad.net/pbr/+bug/1822332
33 TEST_CONFLICTING_PACKAGES.python += library/python/pbr