@@ -27,26 +27,6 @@ CMAKE_ARGS="${CMAKE_ARGS} -DDPCTL_LEVEL_ZERO_INCLUDE_DIR=${PREFIX}/include/level
2727# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
2828${PYTHON} -m build -w -n -x
2929
30- pushd dist
31- ${PYTHON} -m wheel unpack -d dpctl_wheel dpctl* .whl
32- export lib_name=libDPCTLSyclInterface
33- export so_full_path=$( find dpctl_wheel -regextype posix-extended -regex " ^.*${lib_name} \.so" )
34- export sox_full_path=$( find dpctl_wheel -regextype posix-extended -regex " ^.*${lib_name} \.so\.[0-9]*$" )
35- export soxxx_full_path=$( find dpctl_wheel -regextype posix-extended -regex " ^.*${lib_name} \.so\.[0-9]*\.[0-9]*$" )
36-
37- rm -rf ${so_full_path} ${soxxx_full_path}
38-
39- export so_name=$( basename ${so_full_path} )
40- export sox_name=$( basename ${sox_full_path} )
41- export soxxx_name=$( basename ${soxxx_full_path} )
42- export wheel_path=$( dirname $( dirname ${so_full_path} ) )
43-
44- # deal with hard copies
45- ${PYTHON} -m wheel pack ${wheel_path}
46-
47- rm -rf dpctl_wheel
48- popd
49-
5030${PYTHON} -m wheel tags --remove --build " $GIT_DESCRIBE_NUMBER " \
5131 --platform-tag " manylinux_${GLIBC_MAJOR} _${GLIBC_MINOR} _x86_64" \
5232 dist/dpctl* .whl
@@ -59,15 +39,6 @@ ${PYTHON} -m pip install dist/dpctl*.whl \
5939 --prefix " ${PREFIX} " \
6040 -vv
6141
62- export libdir=$( find $PREFIX -name ' libDPCTLSyclInterface*' -exec dirname \{\} \; )
63-
64- # Recover symbolic links
65- # libDPCTLSyclInterface.so.0 -> libDPCTLSyclInterface.so.0.17
66- # libDPCTLSyclInterface.so -> libDPCTLSyclInterface.so.0
67- mv ${libdir} /${sox_name} ${libdir} /${soxxx_name}
68- ln -s ${libdir} /${soxxx_name} ${libdir} /${sox_name}
69- ln -s ${libdir} /${sox_name} ${libdir} /${so_name}
70-
7142# Copy wheel package
7243if [[ -d " ${WHEELS_OUTPUT_FOLDER} " ]]; then
7344 cp dist/dpctl* .whl " ${WHEELS_OUTPUT_FOLDER[@]} "
0 commit comments