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,30 @@ 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
3135 - 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
36+ {% for dep in py_build_deps %}
37+ {% if dep.startswith('ninja') %}
38+ - {{ dep.split(';')[0] }} # [not win]
39+ {% elif dep.startswith('cmake') %}
40+ - {{ dep }}
41+ {% elif dep.startswith('build>=') %}
42+ - {{ 'python-' ~ dep }}
43+ {% else %}
44+ - {{ dep|replace('_','-') }}
45+ {% endif %}
46+ {% endfor %}
47+ # versioneer dependency
48+ - tomli # [py<311]
4049 # TODO: temporary fix, because IGC is broken for output produced by llvm-spirv 2024.1 on windows
4150 - dpcpp-llvm-spirv >={{ required_compiler_version }} # [not win]
4251 - 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]
4952 run :
5053 - {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
5154 - {{ 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') }}
5355 # TODO: temporary fix, because IGC is broken for output produced by llvm-spirv 2024.1 on windows
5456 - {{ pin_compatible('dpcpp-llvm-spirv', min_pin='x.x', max_pin='x') }} # [not win]
5557 - {{ pin_compatible('dpcpp-llvm-spirv', min_pin='x.x', max_pin='x', upper_bound='2024.1') }} # [win]
0 commit comments