Skip to content

Silence python -m wheel {pack, unpack} at unvendoring stage#151

Merged
ryanking13 merged 2 commits intopyodide:mainfrom
ryanking13:silent-wheel-repack
Mar 29, 2025
Merged

Silence python -m wheel {pack, unpack} at unvendoring stage#151
ryanking13 merged 2 commits intopyodide:mainfrom
ryanking13:silent-wheel-repack

Conversation

@ryanking13
Copy link
Copy Markdown
Member

After #116, I noticed that there are verbose logs printed at the very end step of recipe build:

Building packages... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12/12 100% Time elapsed: 0:05:13
Copying build logs to /src/packages/build-logs                                                                                                                                                                       
Copying built packages to /src/dist                                                                                                                                                                                  
Writing pyodide-lock.json to /src/dist/pyodide-lock.json                                                                                                                                                             
Unpacking to: /tmp/tmpbcmq2jas/lzma-1.0.0...OK
Repacking wheel as /src/dist/lzma-1.0.0-cp313-cp313-pyodide_2025_0_wasm32.whl...OK
Unpacking to: /tmp/tmp8h460lyt/sqlite3-1.0.0...OK
Repacking wheel as /src/dist/sqlite3-1.0.0-cp313-cp313-pyodide_2025_0_wasm32.whl...OK
Unpacking to: /tmp/tmpq4g8gu0_/pydoc_data-1.0.0...OK
Repacking wheel as /src/dist/pydoc_data-1.0.0-cp313-cp313-pyodide_2025_0_wasm32.whl...OK
Unpacking to: /tmp/tmp2w_726d9/hashlib-1.0.0...OK
Repacking wheel as /src/dist/hashlib-1.0.0-cp313-cp313-pyodide_2025_0_wasm32.whl...OK
Unpacking to: /tmp/tmp0kwjjwcv/micropip-0.9.0...OK
Repacking wheel as /src/dist/micropip-0.9.0-py3-none-any.whl...OK
Unpacking to: /tmp/tmp76vv54io/ssl-1.0.0...OK
Repacking wheel as /src/dist/ssl-1.0.0-cp313-cp313-pyodide_2025_0_wasm32.whl...OK
Unpacking to: /tmp/tmpw4r6k1d5/pydecimal-1.0.0...OK
Repacking wheel as /src/dist/pydecimal-1.0.0-cp313-cp313-pyodide_2025_0_wasm32.whl...OK
Unpacking to: /tmp/tmp2p_yb3sh/tblib-3.0.0...OK
Repacking wheel as /src/dist/tblib-3.0.0-py3-none-any.whl...OK
Unpacking to: /tmp/tmpwrj6kqd2/packaging-24.2...OK
Repacking wheel as /src/dist/packaging-24.2-py3-none-any.whl...OK

It is because python -m wheel {pack, unpack} prints these logs to stdout. So, I added a verbose parameter to silence these outputs when we don't want them.

@ryanking13 ryanking13 merged commit d4a7582 into pyodide:main Mar 29, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants