python/setuptools-rust: replace deprecated wheel.bdist_wheel
[oi-userland.git] / components / python / scikit_build / Makefile
blob726bee9aeca3612f501009eac08c6ca11a1f2e63
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 scikit_build
17 BUILD_STYLE = pyproject
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME = scikit_build
22 HUMAN_VERSION = 0.18.0
23 COMPONENT_SUMMARY = Improved build system generator for Python C/C++/Fortran/Cython extensions
24 COMPONENT_PROJECT_URL = https://github.com/scikit-build/scikit-build
25 COMPONENT_ARCHIVE_HASH = \
26 sha256:71a13af467d1a38510c3494786e2edb73ead53ea922bde6e519dc5372aa65096
27 COMPONENT_LICENSE = BSD-2-Clause OR MIT
28 COMPONENT_LICENSE_FILE = LICENSE
30 TEST_STYLE = pytest
32 include $(WS_MAKE_RULES)/common.mk
34 # https://github.com/scikit-build/scikit-build/issues/951
35 PYTEST_ADDOPTS += -W ignore::DeprecationWarning
36 # We usually do have setuptools-scm installed so we need to disable tests that
37 # expect setuptools-scm is not installed.
38 PYTEST_ADDOPTS += -m 'not nosetuptoolsscm'
39 # pep518 tests are trying to install numpy using pip, but that fails during
40 # numpy compilation.
41 PYTEST_ADDOPTS += -k 'not pep518'
42 # These tests are trying to install numpy using pip, but that fails because of
43 # https://github.com/numpy/numpy/issues/25366
44 PYTEST_ADDOPTS += --ignore tests/test_distribution.py
46 # Testing needs to compile some C++ sources
47 COMPONENT_TEST_ENV += CXX="$(CXX)"
48 # and it also needs fortran
49 COMPONENT_TEST_ENV += FC="$(FC)"
51 # This project does not support tox so we need to provide test requirements
52 # manually.
53 TEST_REQUIREMENTS_EXTRAS += test
55 # Auto-generated dependencies
56 PYTHON_REQUIRED_PACKAGES += library/python/distro
57 PYTHON_REQUIRED_PACKAGES += library/python/hatch-fancy-pypi-readme
58 PYTHON_REQUIRED_PACKAGES += library/python/hatch-vcs
59 PYTHON_REQUIRED_PACKAGES += library/python/hatchling
60 PYTHON_REQUIRED_PACKAGES += library/python/packaging
61 PYTHON_REQUIRED_PACKAGES += library/python/setuptools
62 PYTHON_REQUIRED_PACKAGES += library/python/tomli
63 PYTHON_REQUIRED_PACKAGES += library/python/wheel
64 PYTHON_REQUIRED_PACKAGES += runtime/python
65 TEST_REQUIRED_PACKAGES.python += library/python/build
66 TEST_REQUIRED_PACKAGES.python += library/python/cython
67 TEST_REQUIRED_PACKAGES.python += library/python/pip
68 TEST_REQUIRED_PACKAGES.python += library/python/pytest
69 TEST_REQUIRED_PACKAGES.python += library/python/pytest-mock
70 TEST_REQUIRED_PACKAGES.python += library/python/requests
71 TEST_REQUIRED_PACKAGES.python += library/python/virtualenv