[BUG] configure.bat fails on Windows: hardcoded commoncode-32.5.2-py3-none-any.whl path does not exist

Aperta
#5,480 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@muskan-creates352 ci sta già lavorando.

Dal 13/11/2026.

  • #5481 di @muskan-creates352 — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
build-system

Direzione di ricerca

The hardcoded wheel name is on line 166 of configure.bat; compare it with the wildcard install on line 264 of the POSIX configure script. The wheel is built from pyproject-commoncode.toml, so the filename changes with the version. Pull request #5481 is already open against this fix, so check it before starting. Done when the Windows install step picks up whatever dist\commoncode*.whl file was built.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem Description

When running configure.bat on Windows from the latest develop branch, the configuration process fails with an error trying to reinstall the locally built commoncode wheel.

Steps to Reproduce
  1. Clone the repository on Windows: git clone https://github.com/aboutcode-org/scancode-toolkit.git
  2. Run configure.bat
Error Output
Built wheel: C:\...\aboutcode\dist\commoncode-33.0.0-py3-none-any.whl
Building from pyproject: pyproject-commoncode.toml
output in : C:\...\aboutcode\dist
using wheel tag: py3-none-any
WARNING: Requirement './dist/commoncode-32.5.2-py3-none-any.whl' looks like a filename, but the file does not exist
Processing c:\...\aboutcode\dist\commoncode-32.5.2-py3-none-any.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\...\\aboutcode\\dist\\commoncode-32.5.2-py3-none-any.whl'
Cause

In configure.bat (line 166), the wheel filename is hardcoded to an older version:

"%CFG_BIN_DIR%\pip" install --force-reinstall ./dist/commoncode-32.5.2-py3-none-any.whl

However, flot builds commoncode-33.0.0-py3-none-any.whl based on pyproject-commoncode.toml.

In the POSIX configure script (line 264), a wildcard is properly used:

"$CFG_BIN_DIR/pip" install --force-reinstall ./dist/commoncode*.whl
Proposed Solution

Update line 166 in configure.bat to handle the wildcard dynamically:

for %%f in (dist\commoncode*.whl) do "%CFG_BIN_DIR%\pip" install --force-reinstall "%%f"
Environment
  • OS: Windows 10/11
  • Python: 3.11
  • Branch: develop
Lingua principale
Python
Stelle
2.7k
Fork
871
Merge medio
1g 10h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aboutcode-org/scancode-toolkit

Tutte le issue di aboutcode-org/scancode-toolkit

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.