Skip to content

Commit 3800286

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 cf23b91 commit 3800286

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

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

404404
nuget.exe install python -ExcludeVersion -OutputDirectory .
405405
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
@@ -45,7 +45,7 @@
4545
@set _Py_HOST_PYTHON=%HOST_PYTHON%
4646
@if "%_Py_HOST_PYTHON%"=="" set _Py_HOST_PYTHON=py
4747
@if "%_Py_NUGET%"=="" (set _Py_NUGET=%_Py_EXTERNALS_DIR%\nuget.exe)
48-
@if "%_Py_NUGET_URL%"=="" (set _Py_NUGET_URL=https://aka.ms/nugetclidl)
48+
@if "%_Py_NUGET_URL%"=="" (set _Py_NUGET_URL=https://dist.nuget.org/win-x86-commandline/latest/nuget.exe)
4949
@if NOT exist "%_Py_NUGET%" (
5050
@echo Downloading nuget...
5151
@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)