@@ -27,26 +27,6 @@ CMAKE_ARGS="${CMAKE_ARGS} -DDPCTL_LEVEL_ZERO_INCLUDE_DIR=${PREFIX}/include/level
27
27
# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
28
28
${PYTHON} -m build -w -n -x
29
29
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
-
50
30
${PYTHON} -m wheel tags --remove --build " $GIT_DESCRIBE_NUMBER " \
51
31
--platform-tag " manylinux_${GLIBC_MAJOR} _${GLIBC_MINOR} _x86_64" \
52
32
dist/dpctl* .whl
@@ -59,15 +39,6 @@ ${PYTHON} -m pip install dist/dpctl*.whl \
59
39
--prefix " ${PREFIX} " \
60
40
-vv
61
41
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
-
71
42
# Copy wheel package
72
43
if [[ -d " ${WHEELS_OUTPUT_FOLDER} " ]]; then
73
44
cp dist/dpctl* .whl " ${WHEELS_OUTPUT_FOLDER[@]} "
0 commit comments