[BUG] configure.bat fails on Windows: hardcoded commoncode-32.5.2-py3-none-any.whl path does not exist
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- build-system
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- Clone the repository on Windows:
git clone https://github.com/aboutcode-org/scancode-toolkit.git - 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
- 主要言語
- Python
- スター
- 2.7k
- フォーク
- 871
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aboutcode-org/scancode-toolkit のほかの issue
-
yarn.lock v1 with a scoped alias of an unscoped package yields no packages and no error対応中かも @Shubham-dev-stack が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
aboutcode-org/scancode-toolkit#5466 ·
メンテナーはふだん 2 日以内に返信
-
package-lock.json dependencies report file_references as a list inside a list対応中かも @Anbarasu2410 が 9 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aboutcode-org/scancode-toolkit#5449 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
scancode aborts when encountering a broken RPM archive対応中かも @Ashutosh-Panda2004 が 14 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
aboutcode-org/scancode-toolkit#5407 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
Four silent bugs: IsRequiredPhrase.license_expression returns None, find_in_path ignores later PATH changes, duplicate dict keys override license mappings対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 半日 初心者へのやさしさ 65/100
aboutcode-org/scancode-toolkit#5405 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
parse_maintainer_name_email returns empty name and wrong email when string has "@" but no angle brackets対応中かも @RohitSutar1823 が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
aboutcode-org/scancode-toolkit#5402 ·
メンテナーはふだん 2 日以内に返信
aboutcode-org/scancode-toolkit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mohanraj00/entelos#200 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
sweep
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
bketelsen/truenas-mcp#77 ·
メンテナーはふだん 1 日以内に返信
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskオープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
sandbox-quantum/switch#2163 ·
メンテナーはふだん 1 日以内に返信