Skip to content

Update PyManager to use 3.14.0b1 runtime #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,30 @@ jobs:
}
shell: powershell

- name: Set up Python 3.14
uses: actions/setup-python@v5
with:
python-version: 3.14-dev
#- name: Set up Python 3.14
# uses: actions/setup-python@v5
# with:
# python-version: 3.14-dev

# We move faster than GitHub's Python runtimes, so use NuGet instead
# One day we can use ourselves to download Python, but not yet...
- name: Set up NuGet
uses: nuget/[email protected]

- name: Set up Python 3.14.0b1
run: |
nuget install python -Version 3.14.0-b1 -x -o .
$py = Get-Item python\tools
Write-Host "Adding $py to PATH"
"$py" | Out-File $env:GITHUB_PATH -Encoding UTF8 -Append
working-directory: ${{ runner.temp }}

- name: Check Python version is 3.14.0b1
run: >
python -c "import sys;
print(sys.version);
print(sys.executable);
sys.exit(0 if sys.version_info[:5] == (3, 14, 0, 'beta', 1) else 1)"

- name: Install build dependencies
run: python -m pip install "pymsbuild>=1.2.0b1"
Expand Down
2 changes: 1 addition & 1 deletion _msbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


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

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