3
3
{% set excluded_compiler_version2 = "2024.0.2" %}
4
4
{% set excluded_compiler_version3 = "2024.0.3" %}
5
5
6
+ {% set pyproject = load_file_data('pyproject.toml') %}
7
+ {% set py_build_deps = pyproject.get('build-system', {}).get('requires', []) %}
8
+
6
9
package :
7
10
name : numba-dpex
8
11
version : {{ GIT_DESCRIBE_TAG }}
@@ -25,31 +28,32 @@ requirements:
25
28
# does not have it in meta data
26
29
- sysroot_linux-64 >=2.28 # [linux]
27
30
host :
31
+ - python
32
+ - pip >=24.0
28
33
- dpcpp-cpp-rt >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }},!={{ excluded_compiler_version3 }} # [win]
29
34
- 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.
31
37
- 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]
40
51
# TODO: temporary fix, because IGC is broken for output produced by llvm-spirv 2024.1 on windows
41
52
- dpcpp-llvm-spirv >={{ required_compiler_version }} # [not win]
42
53
- 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]
49
54
run :
50
55
- {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
51
56
- {{ 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') }}
53
57
# TODO: temporary fix, because IGC is broken for output produced by llvm-spirv 2024.1 on windows
54
58
- {{ pin_compatible('dpcpp-llvm-spirv', min_pin='x.x', max_pin='x') }} # [not win]
55
59
- {{ pin_compatible('dpcpp-llvm-spirv', min_pin='x.x', max_pin='x', upper_bound='2024.1') }} # [win]
0 commit comments