Skip to content

Commit b742168

Browse files
committed
fix building python wheels
1 parent 14f5bf1 commit b742168

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/pypi_publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ jobs:
5454
SETUPTOOLS_SCM_PRETEND_VERSION=${{ startsWith(github.ref_name, 'v') && github.ref_name || '0.0.0.dev0' }}
5555
${{ matrix.backend == 'cuda' && 'CUDA_PATH=/usr/local/cuda PATH=/usr/local/cuda/bin:$PATH' || '' }}
5656
57-
# 关键修改:动态查找 build 目录下所有可能的库路径并加入 LD_LIBRARY_PATH
5857
CIBW_REPAIR_WHEEL_COMMAND_LINUX: >
59-
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(find /project/build -type d -name "rapidspeech" | tr '\n' ':')
58+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(find /project/build -type d -name "rapidspeech" | tr '\n' ':');
59+
yum install -y patchelf &&
60+
find /project/build -name "*.so" -exec patchelf --replace-needed ggml/src/libggml-cpu.so libggml-cpu.so {} \; || true;
6061
auditwheel repair -w {dest_dir} {wheel}
6162
6263
CIBW_BEFORE_ALL_LINUX: >-

0 commit comments

Comments
 (0)