fix(pack): restore conda packaging tools before conda-pack (#3988)#4093
Conversation
|
Hi @jinglinpeng, this is your 12th Pull Request. 📋 About PR TemplateTo help maintainers review your PR faster, please make sure to include:
Complete PR information helps speed up the review process. You can edit the PR description to add these details. 🙌 Join Developer CommunityThanks so much for your contribution! We'd love to invite you to join the official QwenPaw developer group! You can find the Discord and DingTalk group links under the "Developer Community" section on our docs page: We truly appreciate your enthusiasm—and look forward to your future contributions! 😊 We'll review your PR soon. |
|
有些建议。可能不只是 pip, setuptools 。如果是conda-pack 0.8.1,还有个库:packaging 另外, |

Description
This PR fixes Windows desktop packaging failures where
conda-packreports conda-managedsetuptoolsfiles as deleted or overwritten after installingqwenpaw[full]into the temporary packaging environment.The root cause is that pip dependency resolution can uninstall/reinstall packages that were originally managed by conda. The packaging script now avoids explicitly upgrading pip with pip, then restores conda-managed
pip,setuptools, andwheelbefore runningconda-pack. The existing unpinnedconda-packinstall behavior is preserved.Related Issue: Fixes #3988
Security Considerations: No security-sensitive runtime behavior changes. This only affects the temporary conda environment used by desktop packaging scripts.
Type of Change
Component(s) Affected
Checklist
pre-commit run --all-fileslocally and it passespytestor as relevant) and they passFor Channel Changes (DingTalk, Feishu, QQ, Console, etc.)
./scripts/check-channels.sh(or./scripts/check-channels.sh --changed) and it passestests/contract/channels/test_<channel>_contract.py(REQUIRED)create_instance()with proper channel initializationtests/contract/channels/__init__.py)tests/unit/channels/test_<channel>.pyfor complex internal logicTesting
CondaPackErrorfor overwrittensetuptoolsfiles duringconda-pack.conda-packphase and produceddist\qwenpaw-env.zip.[System.IO.Path]::IsPathRooted(...); this happens after the fixedconda-packstep and is unrelated to this issue.Local Verification Evidence
Additional Notes
The fix intentionally does not pin or change the
conda-packversion. The packaging script keeps installingconda-packusing the existing unversioned conda spec.