Fangjun Kuang
Committed by GitHub

repair rknn wheels (#2257)

@@ -25,6 +25,11 @@ jobs: @@ -25,6 +25,11 @@ jobs:
25 with: 25 with:
26 fetch-depth: 0 26 fetch-depth: 0
27 27
  28 + - name: Setup Python
  29 + uses: actions/setup-python@v5
  30 + with:
  31 + python-version: ${{ matrix.python-version }}
  32 +
28 - name: Download rknn-toolkit2 33 - name: Download rknn-toolkit2
29 shell: bash 34 shell: bash
30 run: | 35 run: |
@@ -109,10 +114,28 @@ jobs: @@ -109,10 +114,28 @@ jobs:
109 export SHERPA_ONNX_CMAKE_ARGS="-DSHERPA_ONNX_ENABLE_RKNN=ON" 114 export SHERPA_ONNX_CMAKE_ARGS="-DSHERPA_ONNX_ENABLE_RKNN=ON"
110 python3 setup.py bdist_wheel 115 python3 setup.py bdist_wheel
111 116
  117 + mv dist wheelhouse
  118 +
112 - name: Display results 119 - name: Display results
113 shell: bash 120 shell: bash
114 run: | 121 run: |
115 - ls -lh dist 122 + ls -lh wheelhouse
  123 +
  124 + - name: Fix wheel name
  125 + shell: bash
  126 + run: |
  127 + python3 -m pip install auditwheel
  128 +
  129 + auditwheel show ./wheelhouse/*.whl
  130 +
  131 + auditwheel repair --help
  132 +
  133 + auditwheel --verbose repair --plat manylinux_2_27_aarch64 \
  134 + --exclude librknnrt.so \
  135 + --exclude libasound.so.2 \
  136 + -w ./dist ./wheelhouse/*.whl
  137 +
  138 + ls -lh dist/*.whl
116 139
117 - name: Show glibc versions 140 - name: Show glibc versions
118 shell: bash 141 shell: bash