Repository navigation
Fix hardcoded commoncode wheel path in configure.bat (fixes #5480) - #5481
muskan-creates352 wants to merge 1 commit into
Conversation
|
@kmlyz plz ptal... |
kmlyz
left a comment
There was a problem hiding this comment.
Thanks for working on #5480. Two edge cases stand out with the dist\commoncode*.whl loop in configure.bat:
- If flot fails or no wheel matches, the loop exits 0 without running pip and falls through to installing PyPI commoncode.
- On re-runs without clean, stale wheels in dist can install out of order, for example commoncode-33.0.0 before commoncode-33.0.0rc1 since "-" sorts before "r".
Removing old commoncode wheels before running flot and failing when no wheel is found would avoid both.
…-org#5480) Signed-off-by: Muskan Kumari <er.muskan09@gmail.com>
1251ce4 to
192a636
Compare
|
Thanks for the thorough review and catch @kmlyz! I have updated the PR to handle both edge cases:
The commit has been updated with DCO sign-off. |
kmlyz
left a comment
There was a problem hiding this comment.
Thanks for the quick update, @muskan-creates352. Verified the updated configure.bat logic on 192a636 with empty-dist and stale-wheel cmd.exe checks, and both exit-code handling and wheel selection look good alongside green win2022 and win2025 CI runs.
|
Thank you @kmlyz for verifying and for the helpful feedback! |
Fixes #5480
Problem
On Windows, running
configure.batfails with:ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '...dist\commoncode-32.5.2-py3-none-any.whl'because the wheel filename was hardcoded to
commoncode-32.5.2-py3-none-any.whlwhileflotbuildscommoncode-33.0.0-py3-none-any.whl.Solution
Updated
configure.batto dynamically locate and installdist\commoncode*.whlusing a wildcard loop, matching the behavior of the POSIXconfigurescript.Checklist