Skip to content

Commit 867d099

Browse files
authored
Update runtime to 3.14.5 (#337)
1 parent 07c4712 commit 867d099

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ jobs:
4343
- name: Set up NuGet
4444
uses: nuget/setup-nuget@b26b823c478ee115be5c9403e62c90b0bf943843 # v3.1.0
4545

46-
- name: Set up Python 3.14.4
46+
- name: Set up Python 3.14.5
4747
run: |
48-
nuget install python -Version 3.14.4 -x -o .
48+
nuget install python -Version 3.14.5 -x -o .
4949
$py = Get-Item python\tools
5050
Write-Host "Adding $py to PATH"
5151
"$py" | Out-File $env:GITHUB_PATH -Encoding UTF8 -Append
5252
working-directory: ${{ runner.temp }}
5353

54-
- name: Check Python version is 3.14.4
54+
- name: Check Python version is 3.14.5
5555
run: >
5656
python -c "import sys;
5757
print(sys.version);
5858
print(sys.executable);
59-
sys.exit(0 if sys.version_info[:5] == (3, 14, 4, 'final', 0) else 1)"
59+
sys.exit(0 if sys.version_info[:5] == (3, 14, 5, 'final', 0) else 1)"
6060
6161
- name: Install build dependencies
6262
run: python -m pip install "pymsbuild==1.2.2"

_msbuild.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
import os
2+
import sys
23
from pymsbuild import *
34
from pymsbuild.dllpack import *
45

56

6-
DLL_NAME = "python314"
7-
EMBED_URL = "https://www.python.org/ftp/python/3.14.3/python-3.14.3-embed-amd64.zip"
7+
DLL_NAME = "python{0.major}{0.minor}".format(sys.version_info)
8+
VER_NUM = "{0.major}.{0.minor}.{0.micro}".format(sys.version_info)
9+
EMBED_URL = f"https://www.python.org/ftp/python/{VER_NUM}/python-{VER_NUM}-embed-amd64.zip"
810

911
def can_embed(tag):
1012
"""Return False if tag doesn't match DLL_NAME and EMBED_URL.
1113
This is used for validation at build time, we don't currently handle
1214
requesting a different build target."""
13-
return tag == "cp314-cp314-win_amd64"
15+
return tag == "cp{0.major}{0.minor}-cp{0.major}{0.minor}-win_amd64".format(
16+
sys.version_info
17+
)
1418

1519

1620
METADATA = {
@@ -454,6 +458,7 @@ def init_PACKAGE(tag=None):
454458
from zipfile import ZipFile
455459
package = tmpdir / tag / "package.zip"
456460
package.parent.mkdir(exist_ok=True, parents=True)
461+
print("Downloading", EMBED_URL)
457462
urlretrieve(EMBED_URL, package)
458463
with ZipFile(package) as zf:
459464
for f in [*embed_files, *runtime_files]:

ci/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ stages:
9595
displayName: 'Install Nuget'
9696

9797
- powershell: |
98-
nuget install python -Version 3.14.4 -x -noninteractive -o host_python
98+
nuget install python -Version 3.14.5 -x -noninteractive -o host_python
9999
$py = Get-Item host_python\python\tools
100100
Write-Host "Adding $py to PATH"
101101
Write-Host "##vso[task.prependpath]$py"
102-
displayName: Set up Python 3.14.4
102+
displayName: Set up Python 3.14.5
103103
workingDirectory: $(Build.BinariesDirectory)
104104
105105
- powershell: >
106106
python -c "import sys;
107107
print(sys.version);
108108
print(sys.executable);
109-
sys.exit(0 if sys.version_info[:5] == (3, 14, 4, 'final', 0) else 1)"
110-
displayName: Check Python version is 3.14.4
109+
sys.exit(0 if sys.version_info[:5] == (3, 14, 5, 'final', 0) else 1)"
110+
displayName: Check Python version is 3.14.5
111111
112112
- powershell: |
113113
python -m pip install "pymsbuild==1.2.2"

0 commit comments

Comments
 (0)