Skip to content

Commit 7726169

Browse files
harjothkharamiss-islington
authored andcommitted
gh-153438: Update NuGet download URL (GH-153482)
(cherry picked from commit 106eb53) Co-authored-by: Harjoth Khara <harjoth.khara@gmail.com>
1 parent 90c91b4 commit 7726169

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
@@ -1176,9 +1176,9 @@ on using nuget. What follows is a summary that is sufficient for Python
11761176
developers.
11771177

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

11831183
nuget.exe install python -ExcludeVersion -OutputDirectory .
11841184
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
@@ -55,7 +55,7 @@
5555
@set _Py_HOST_PYTHON=%HOST_PYTHON%
5656
@if "%_Py_HOST_PYTHON%"=="" set _Py_HOST_PYTHON=py
5757
@if "%_Py_NUGET%"=="" (set _Py_NUGET=%_Py_EXTERNALS_DIR%\nuget.exe)
58-
@if "%_Py_NUGET_URL%"=="" (set _Py_NUGET_URL=https://aka.ms/nugetclidl)
58+
@if "%_Py_NUGET_URL%"=="" (set _Py_NUGET_URL=https://dist.nuget.org/win-x86-commandline/latest/nuget.exe)
5959
@if NOT exist "%_Py_NUGET%" (
6060
@if not "%_Py_Quiet%"=="1" @echo Downloading nuget...
6161
@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)