diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f3b94a..f5571ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/setup-nuget@v2.0.1 + + - 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" diff --git a/_msbuild.py b/_msbuild.py index 2d183ab..d191698 100644 --- a/_msbuild.py +++ b/_msbuild.py @@ -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.