Skip to content

Commit 550fb82

Browse files
authored
Update PyManager to use 3.14.0b1 runtime (#71)
1 parent 4add401 commit 550fb82

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,30 @@ jobs:
3030
}
3131
shell: powershell
3232

33-
- name: Set up Python 3.14
34-
uses: actions/setup-python@v5
35-
with:
36-
python-version: 3.14-dev
33+
#- name: Set up Python 3.14
34+
# uses: actions/setup-python@v5
35+
# with:
36+
# python-version: 3.14-dev
37+
38+
# We move faster than GitHub's Python runtimes, so use NuGet instead
39+
# One day we can use ourselves to download Python, but not yet...
40+
- name: Set up NuGet
41+
uses: nuget/[email protected]
42+
43+
- name: Set up Python 3.14.0b1
44+
run: |
45+
nuget install python -Version 3.14.0-b1 -x -o .
46+
$py = Get-Item python\tools
47+
Write-Host "Adding $py to PATH"
48+
"$py" | Out-File $env:GITHUB_PATH -Encoding UTF8 -Append
49+
working-directory: ${{ runner.temp }}
50+
51+
- name: Check Python version is 3.14.0b1
52+
run: >
53+
python -c "import sys;
54+
print(sys.version);
55+
print(sys.executable);
56+
sys.exit(0 if sys.version_info[:5] == (3, 14, 0, 'beta', 1) else 1)"
3757
3858
- name: Install build dependencies
3959
run: python -m pip install "pymsbuild>=1.2.0b1"

_msbuild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
DLL_NAME = "python314"
7-
EMBED_URL = "https://www.python.org/ftp/python/3.14.0/python-3.14.0a7-embed-amd64.zip"
7+
EMBED_URL = "https://www.python.org/ftp/python/3.14.0/python-3.14.0b1-embed-amd64.zip"
88

99
def can_embed(tag):
1010
"""Return False if tag doesn't match DLL_NAME and EMBED_URL.

0 commit comments

Comments
 (0)