[PR #801] [MERGED] [CI] Fix Release build_wheel.sh to make python 3.8 auditwheel happy #1831

Closed
opened 2026-10-29 21:30:42 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kvcache-ai/Mooncake/pull/801
Author: @mumupika
Created: 9/3/2025
Status: ✅ Merged
Merged: 9/5/2025
Merged by: @xiaguan

Base: main ← Head: main


📝 Commits (5)

  • 9be1898 Prepare test action env.
  • d17279f [Trial] fix wildcard.
  • 0bf1b29 [Trial] fix libcuda.so.1 has been modified after cuda-12.8 installed in alternative install.
  • 5595a07 Revert to previous release.yml.
  • 2bf2067 Try to add repo for prevent publish to pypi failed in fork repo.

📊 Changes

2 files changed (+176 additions, -76 deletions)

View changed files

📝 .github/workflows/release.yaml (+1 -0)
📝 scripts/build_wheel.sh (+175 -76)

📄 Description

Hello! From the release log in your actions, Python 3.8 was failed due to

ValueError: Cannot repair wheel, because required library "libcuda.so.1" could not be located

After investigation, I believed that this was due to python 3.8 do not have auditwheels that capable of --exclude shared libraries with wildcards. You can refer to the PR https://github.com/pypa/auditwheel/pull/508#issue-2450955901 here.

It can be seen that Release for 6.2.0 is only suitable for python>=3.9.

截屏2025-09-03 20 39 21 截屏2025-09-03 20 38 30

And in your log, your auditwheel has a version of 6.1.0 in python 3.8 which does not support wild-card.

截屏2025-09-03 20 40 26

It can be seen that all jobs have done except publish to PYPI. And it seems working well!

截屏2025-09-03 20 42 08 截屏2025-09-03 20 42 53

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/kvcache-ai/Mooncake/pull/801 **Author:** [@mumupika](https://github.com/mumupika) **Created:** 9/3/2025 **Status:** ✅ Merged **Merged:** 9/5/2025 **Merged by:** [@xiaguan](https://github.com/xiaguan) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (5) - [`9be1898`](https://github.com/kvcache-ai/Mooncake/commit/9be189893d36fef18351b0a50df0b19ff4a343f2) Prepare test action env. - [`d17279f`](https://github.com/kvcache-ai/Mooncake/commit/d17279f0b0199d2c8693d627249ad8d53e6f3580) [Trial] fix wildcard. - [`0bf1b29`](https://github.com/kvcache-ai/Mooncake/commit/0bf1b29c6bd4357ddc4154181d7246b4142e4d6c) [Trial] fix libcuda.so.1 has been modified after cuda-12.8 installed in alternative install. - [`5595a07`](https://github.com/kvcache-ai/Mooncake/commit/5595a0739578645429cd319f1dcc9ec01ddac543) Revert to previous release.yml. - [`2bf2067`](https://github.com/kvcache-ai/Mooncake/commit/2bf20673434907ed3de3f44cdf480014de471984) Try to add repo for prevent publish to pypi failed in fork repo. ### 📊 Changes **2 files changed** (+176 additions, -76 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/release.yaml` (+1 -0) 📝 `scripts/build_wheel.sh` (+175 -76) </details> ### 📄 Description Hello! From the release log in your actions, Python 3.8 was failed due to ``` ValueError: Cannot repair wheel, because required library "libcuda.so.1" could not be located ``` After investigation, I believed that this was due to python 3.8 do not have auditwheels that capable of `--exclude` shared libraries with wildcards. You can refer to the PR https://github.com/pypa/auditwheel/pull/508#issue-2450955901 here. It can be seen that Release for 6.2.0 is only suitable for python>=3.9. <img width="192" height="161" alt="截屏2025-09-03 20 39 21" src="https://github.com/user-attachments/assets/df0eb37a-f1d4-4228-917e-c85e647bdd17" /> <img width="989" height="447" alt="截屏2025-09-03 20 38 30" src="https://github.com/user-attachments/assets/c86cb923-88b9-43fb-b52e-ebd12acb4e9d" /> And in your log, your auditwheel has a version of 6.1.0 in python 3.8 which does not support wild-card. <img width="1082" height="252" alt="截屏2025-09-03 20 40 26" src="https://github.com/user-attachments/assets/08ddf1bf-da03-4434-b12e-9a58bcf9ed74" /> It can be seen that all jobs have done except publish to PYPI. And it seems working well! <img width="877" height="284" alt="截屏2025-09-03 20 42 08" src="https://github.com/user-attachments/assets/5355441e-eff4-4581-af4a-1935cf305990" /> <img width="880" height="263" alt="截屏2025-09-03 20 42 53" src="https://github.com/user-attachments/assets/ef6232cf-8cfe-4fc7-b894-e0a1b115bc1e" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:30:42 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/Mooncake#1831
No description provided.