33{% set excluded_compiler_version2 = "2024.0.2" %}
44{% set excluded_compiler_version3 = "2024.0.3" %}
55
6+ {% set pyproject = load_file_data('pyproject.toml') %}
7+ {% set py_build_deps = pyproject.get('build-system', {}).get('requires', []) %}
8+
69package :
710 name : numba-dpex
811 version : {{ GIT_DESCRIBE_TAG }}
@@ -25,31 +28,32 @@ requirements:
2528 # does not have it in meta data
2629 - sysroot_linux-64 >=2.28 # [linux]
2730 host :
31+ - python
32+ - pip >=24.0
2833 - dpcpp-cpp-rt >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }},!={{ excluded_compiler_version3 }} # [win]
2934 - dpcpp-cpp-rt >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }} # [linux]
30- - python
35+ # ensure we are using latest version of setuptools, since we don't need
36+ # editable environments for release.
3137 - setuptools >=69
32- - scikit-build >=0.17
33- - ninja >=1.11.1 # [not win]
34- - cmake >=3.29
35- - numba >=0.59
36- - llvmlite >=0.42.0
37- - dpctl >=0.16.1
38- - dpnp >=0.14
39- - numpy >=1.24
38+ {% for dep in py_build_deps %}
39+ {% if dep.startswith('ninja') %}
40+ - {{ dep.split(';')[0] }} # [not win]
41+ {% elif dep.startswith('cmake') %}
42+ - {{ dep }}
43+ {% elif dep.startswith('build>=') %}
44+ - {{ 'python-' ~ dep }}
45+ {% else %}
46+ - {{ dep|replace('_','-') }}
47+ {% endif %}
48+ {% endfor %}
49+ # versioneer dependency
50+ - tomli # [py<311]
4051 # TODO: temporary fix, because IGC is broken for output produced by llvm-spirv 2024.1 on windows
4152 - dpcpp-llvm-spirv >={{ required_compiler_version }} # [not win]
4253 - dpcpp-llvm-spirv >={{ required_compiler_version }},<2024.1 # [win]
43- - wheel >=0.43
44- - pip >=24.0
45- - python-build >=1.1
46- - versioneer==0.29
47- # versioneer dependency
48- - tomli # [py<311]
4954 run :
5055 - {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
5156 - {{ pin_compatible('intel-cmplr-lib-rt', min_pin='x.x', max_pin='x') }}
52- - {{ pin_compatible('dpcpp-llvm-spirv', min_pin='x.x', max_pin='x') }}
5357 # TODO: temporary fix, because IGC is broken for output produced by llvm-spirv 2024.1 on windows
5458 - {{ pin_compatible('dpcpp-llvm-spirv', min_pin='x.x', max_pin='x') }} # [not win]
5559 - {{ pin_compatible('dpcpp-llvm-spirv', min_pin='x.x', max_pin='x', upper_bound='2024.1') }} # [win]
0 commit comments