Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteff2042

Browse files
[3.11]gh-107814: Avoid output from Nuget installation in find_python.bat (GH-107815)
gh-107814: Avoid output from Nuget installation in find_python.bat (GH-107815)(cherry picked from commit1e229e2)Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
1 parentec0c0c8 commiteff2042

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
When calling ``find_python.bat`` with ``-q`` it did not properly silence the output of nuget. That is now fixed.

‎PCbuild/find_python.bat‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
@if"%_Py_NUGET%"=="" (set _Py_NUGET=%_Py_EXTERNALS_DIR%\nuget.exe)
5353
@if"%_Py_NUGET_URL%"=="" (set _Py_NUGET_URL=https://aka.ms/nugetclidl)
5454
@ifNOT exist"%_Py_NUGET%" (
55-
@echo Downloading nuget...
55+
@ifnot"%_Py_Quiet%"=="1"@echo Downloading nuget...
5656
@rem NB: Must use single quotes around NUGET here, NOT double!
5757
@rem Otherwise, a space in the path would break things
5858
@rem If it fails, retry with any available copy of Python
@@ -63,7 +63,11 @@
6363
)
6464

6565
@ifnot"%_Py_Quiet%"=="1"@echo Installing Python via nuget...
66-
@"%_Py_NUGET%" install pythonx86 -ExcludeVersion -OutputDirectory"%_Py_EXTERNALS_DIR%"
66+
@ifnot"%_Py_Quiet%"=="1" (
67+
@"%_Py_NUGET%" install pythonx86 -ExcludeVersion -OutputDirectory"%_Py_EXTERNALS_DIR%"
68+
)else (
69+
@"%_Py_NUGET%" install pythonx86 -Verbosity quiet -ExcludeVersion -OutputDirectory"%_Py_EXTERNALS_DIR%"
70+
)
6771
@rem Quote it here; it's not quoted later because "py -x.y" wouldn't work
6872
@ifnot errorlevel1 (set PYTHON="%_Py_EXTERNALS_DIR%\pythonx86\tools\python.exe")& (set _Py_Python_Source=found on nuget.org)&goto :found
6973

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp