Skip to content

Commit b3369eb

Browse files
zoobaharjothkhara
authored andcommitted
[3.13] gh-153438: Update NuGet download URL (GH-153482) (GH-153515)
gh-153438: Update NuGet download URL (GH-153482) (cherry picked from commit 106eb53) (cherry picked from commit 62eb50d) Co-authored-by: Steve Dower <steve.dower@python.org> Co-authored-by: Harjoth Khara <harjoth.khara@gmail.com>
1 parent d2b2f5e commit b3369eb

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

Doc/using/windows.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ on using nuget. What follows is a summary that is sufficient for Python
401401
developers.
402402

403403
The ``nuget.exe`` command line tool may be downloaded directly from
404-
``https://aka.ms/nugetclidl``, for example, using curl or PowerShell. With the
405-
tool, the latest version of Python for 64-bit or 32-bit machines is installed
406-
using::
404+
``https://dist.nuget.org/win-x86-commandline/latest/nuget.exe``, for example,
405+
using curl or PowerShell. With the tool, the latest version of Python for
406+
64-bit or 32-bit machines is installed using::
407407

408408
nuget.exe install python -ExcludeVersion -OutputDirectory .
409409
nuget.exe install pythonx86 -ExcludeVersion -OutputDirectory .
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Update Windows build and installer tooling and documentation to use the
2+
current download URL for ``nuget.exe``.

PCbuild/find_python.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
@set _Py_HOST_PYTHON=%HOST_PYTHON%
5151
@if "%_Py_HOST_PYTHON%"=="" set _Py_HOST_PYTHON=py
5252
@if "%_Py_NUGET%"=="" (set _Py_NUGET=%_Py_EXTERNALS_DIR%\nuget.exe)
53-
@if "%_Py_NUGET_URL%"=="" (set _Py_NUGET_URL=https://aka.ms/nugetclidl)
53+
@if "%_Py_NUGET_URL%"=="" (set _Py_NUGET_URL=https://dist.nuget.org/win-x86-commandline/latest/nuget.exe)
5454
@if NOT exist "%_Py_NUGET%" (
5555
@if not "%_Py_Quiet%"=="1" @echo Downloading nuget...
5656
@rem NB: Must use single quotes around NUGET here, NOT double!

Tools/msi/get_externals.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set HERE=%~dp0
66
if "%PCBUILD%"=="" (set PCBUILD=%HERE%..\..\PCbuild\)
77
if "%EXTERNALS_DIR%"=="" (set EXTERNALS_DIR=%HERE%..\..\externals\windows-installer)
88
if "%NUGET%"=="" (set NUGET=%EXTERNALS_DIR%\..\nuget.exe)
9-
if "%NUGET_URL%"=="" (set NUGET_URL=https://aka.ms/nugetclidl)
9+
if "%NUGET_URL%"=="" (set NUGET_URL=https://dist.nuget.org/win-x86-commandline/latest/nuget.exe)
1010

1111
set DO_FETCH=true
1212
set DO_CLEAN=false

0 commit comments

Comments
 (0)