python / python/cpython

Windows builds fail when no version of Python is present

オープン
#99,042 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

build OS-windows type-bug
主要言語
Python
スター
77.2k
フォーク
36k
PR マージ指標
PR 指標を取得中

説明

Bug report

When building python 3.11.0 on windows, if no version of python already exists, the build fails due to apparently malformed nuget commands.

       FindPythonForBuild:

         Downloading nuget...

         Feeds used:

           https://api.nuget.org/v3/index.json



         Installing package 'pythonx86' to 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals'.

           GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/index.json

           OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/index.json 123ms

           GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.5.2/3.8.1-c1.json

           GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.8.1/3.10.4.json

           GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.10.5/3.12.0-a1.json

           OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.8.1/3.10.4.json 33ms

           OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.5.2/3.8.1-c1.json 88ms

           OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.10.5/3.12.0-a1.json 94ms



         Attempting to gather dependency information for package 'pythonx86.3.11.0' with respect to project 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals', targeting 'Any,Version=v0.0'

         Gathering dependency information took 48 ms

         Attempting to resolve dependencies for package 'pythonx86.3.11.0' with DependencyBehavior 'Lowest'

         Resolving dependency information took 0 ms

         Resolving actions to install package 'pythonx86.3.11.0'

         Resolved actions to install package 'pythonx86.3.11.0'

         Retrieving package 'pythonx86 3.11.0' from 'nuget.org'.

           GET https://api.nuget.org/v3-flatcontainer/pythonx86/3.11.0/pythonx86.3.11.0.nupkg

           OK https://api.nuget.org/v3-flatcontainer/pythonx86/3.11.0/pythonx86.3.11.0.nupkg 62ms

         Installed pythonx86 3.11.0 from https://api.nuget.org/v3/index.json with content hash V5oJYri31E20HR7Z1EfzCiYObF8U6ECVIZ2Rg4BifoH31dRA48nQTOOP6ClcGpfrjK4yZOQrgB4HxoEQqMYmYA==.

         Adding package 'pythonx86.3.11.0' to folder 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals'

         Added package 'pythonx86.3.11.0' to folder 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals'

         Successfully installed 'pythonx86 3.11.0' to C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals

         Executing nuget actions took 7.4 sec

         "C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\PCbuild\\\\..\\externals\\pythonx86\\tools\\python.exe"

         Using PythonForBuild=Downloading nuget...;Feeds used:;https://api.nuget.org/v3/index.json;Installing package 'pythonx86' to 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals'.;GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/index.json;OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/index.json 123ms;GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.5.2/3.8.1-c1.json;GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.8.1/3.10.4.json;GET https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.10.5/3.12.0-a1.json;OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.8.1/3.10.4.json 33ms;OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.5.2/3.8.1-c1.json 88ms;OK https://api.nuget.org/v3/registration5-gz-semver2/pythonx86/page/3.10.5/3.12.0-a1.json 94ms;Attempting to gather dependency information for package 'pythonx86.3.11.0' with respect to project 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals', targeting 'Any,Version=v0.0';Gathering dependency information took 48 ms;Attempting to resolve dependencies for package 'pythonx86.3.11.0' with DependencyBehavior 'Lowest';Resolving dependency information took 0 ms;Resolving actions to install package 'pythonx86.3.11.0';Resolved actions to install package 'pythonx86.3.11.0';Retrieving package 'pythonx86 3.11.0' from 'nuget.org'.;GET https://api.nuget.org/v3-flatcontainer/pythonx86/3.11.0/pythonx86.3.11.0.nupkg;OK https://api.nuget.org/v3-flatcontainer/pythonx86/3.11.0/pythonx86.3.11.0.nupkg 62ms;Installed pythonx86 3.11.0 from https://api.nuget.org/v3/index.json with content hash V5oJYri31E20HR7Z1EfzCiYObF8U6ECVIZ2Rg4BifoH31dRA48nQTOOP6ClcGpfrjK4yZOQrgB4HxoEQqMYmYA==.;Adding package 'pythonx86.3.11.0' to folder 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals';Added package 'pythonx86.3.11.0' to folder 'C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals';Successfully installed 'pythonx86 3.11.0' to C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\externals;Executing nuget actions took 7.4 sec;"C:\\builds\\sources\\202db9a1-4e19-51e0-bc2f-be2b07ba07bb\\Python-3.11.0\\PCbuild\\\\..\\externals\\pythonx86\\tools\\python.exe"

Then, later:

         'Downloading' is not recognized as an internal or external command,

         operable program or batch file.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず PCbuild FindPythonForBuild ステップと、記録された NuGet の出力を確認します。Python があらかじめインストールされていない状態で Windows ビルドを再現し、その後、ダウンロードされたコマンドの出力がなぜ PythonForBuild の値になるのかを追跡します。'Downloading' をコマンドとして扱わずにビルドが進行すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。