Skip to content

Commit e36c979

Browse files
authored
Merge pull request #1452 from IntelPython/ekomarova/update_wheel_tag
update wheel tag with pep600
2 parents ab500b6 + 9a5bebd commit e36c979

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

conda-recipe/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ echo "--gcc-toolchain=${BUILD_PREFIX} --sysroot=${BUILD_PREFIX}/${HOST}/sysroot
99
ICPXCFG="$(pwd)/icpx_for_conda.cfg"
1010
ICXCFG="$(pwd)/icpx_for_conda.cfg"
1111

12+
read -r GLIBC_MAJOR GLIBC_MINOR <<<"$(conda list '^sysroot_linux-64$' \
13+
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
14+
1215
export ICXCFG
1316
export ICPXCFG
1417

@@ -26,7 +29,8 @@ export PATH=$CONDA_PREFIX/bin-llvm:$PATH
2629
# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
2730
${PYTHON} -m build -w -n -x
2831
${PYTHON} -m wheel tags --remove --build "$GIT_DESCRIBE_NUMBER" \
29-
--platform-tag manylinux2014_x86_64 dist/numba_dpex*.whl
32+
--platform-tag "manylinux_${GLIBC_MAJOR}_${GLIBC_MINOR}_x86_64" \
33+
dist/numba_dpex*.whl
3034
${PYTHON} -m pip install dist/numba_dpex*.whl \
3135
--no-build-isolation \
3236
--no-deps \

conda-recipe/meta.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ requirements:
2424
- {{ compiler('cxx') }}
2525
- {{ compiler('dpcpp') }} >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }},!={{ excluded_compiler_version3 }} # [win]
2626
- {{ compiler('dpcpp') }} >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }} # [linux]
27-
# specific version of sysroot required by dpcpp, but 2024.0.0 package
28-
# does not have it in meta data
29-
- sysroot_linux-64 >=2.28 # [linux]
27+
# Minimal supported version of sysroot (which is version of glibc) to
28+
# have compatibility with wider range of linux distributions.
29+
# 2.28 is the minimal supported version by dpcpp
30+
- sysroot_linux-64 =2.28 # [linux]
3031
host:
3132
- python
3233
- pip >=24.0

0 commit comments

Comments
 (0)