Skip to content

Fix local commoncode wheel installation on Windows - #5413

Open
Shrashti1234 wants to merge 1 commit into
aboutcode-org:developfrom
Shrashti1234:fix-windows-local-commoncode-wheel
Open

Shrashti1234 wants to merge 1 commit into
aboutcode-org:developfrom
Shrashti1234:fix-windows-local-commoncode-wheel

Conversation

@Shrashti1234

Copy link
Copy Markdown

Windows source setup builds commoncode 33.0.0, then attempts to install the hardcoded dist/commoncode-32.5.2-py3-none-any.whl. That file does not exist, so the local commoncode installation fails and setup continues with a released dependency instead.

Discover the wheel in dist, require exactly one candidate, and stop on build or installation failure. This keeps Windows setup aligned with the local build when its version changes and prevents silently selecting a stale wheel.

Validation on Windows 11 / Python 3.14.2:

  • Ran configure --dev: it installed the built commoncode 33.0.0 wheel and completed successfully.
  • Exercised the production selection block in temporary directories with spaces in their paths: current version, future version, missing wheel, multiple wheels, and installer failure all behaved as expected.
  • git -c core.whitespace=cr-at-eol diff --check passed; the batch file retains its existing CRLF endings.

Updated AUTHORS.rst and CHANGELOG.rst. Commits include DCO sign-off.

Known base-branch CI issues: the FSL ignorable metadata and parallel-runner corrections are covered separately in #5408. Hosted checks for this PR are pending.

AI disclosure: OpenAI Codex reproduced, implemented, and validated this change and prepared the PR description at my request.

Discover the commoncode wheel produced by flot instead of referring to a hardcoded 32.5.2 filename. Stop on build and install errors, and reject missing or ambiguous wheel selections so a stale artifact cannot be selected silently.

Verified configure --dev installs commoncode 33.0.0 and completes successfully. Exercised the production selection block with current/future versions, paths containing spaces, no wheels, multiple wheels, and a failed installer.

Assisted-by: OpenAI Codex
Signed-off-by: Shrashti1234 <sharishhtia@gmail.com>

This branch has not been deployed

No deployments
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.

1 participant