Skip to content

Commit 6d95da4

Browse files
committed
Use manylinux_2_28 wheel format
1 parent 8cde9c0 commit 6d95da4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

conda-recipe/build.sh

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

11+
read -r GLIBC_MAJOR GLIBC_MINOR <<<"$(conda list '^sysroot_linux-64$' \
12+
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
13+
1114
if [ -e "_skbuild" ]; then
1215
${PYTHON} setup.py clean --all
1316
fi
@@ -24,7 +27,8 @@ CMAKE_ARGS="${CMAKE_ARGS} -DDPCTL_LEVEL_ZERO_INCLUDE_DIR=${PREFIX}/include/level
2427
# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
2528
${PYTHON} -m build -w -n -x
2629
${PYTHON} -m wheel tags --remove --build "$GIT_DESCRIBE_NUMBER" \
27-
--platform-tag manylinux2014_x86_64 dist/dpctl*.whl
30+
--platform-tag "manylinux_${GLIBC_MAJOR}_${GLIBC_MINOR}_x86_64" \
31+
dist/dpctl*.whl
2832
${PYTHON} -m pip install dist/dpctl*.whl \
2933
--no-build-isolation \
3034
--no-deps \

0 commit comments

Comments
 (0)