Skip to content

Commit 01a163a

Browse files
committed
fix(python): use versions available in both download sources
Windows uses python.org, Unix uses python-build-standalone (20240814). Using 3.11.9 and 3.12.5 which exist in both sources.
1 parent 7e21880 commit 01a163a

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/integration-test-python.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ jobs:
4040
- os: ubuntu-latest
4141
platform: linux
4242
ext: ""
43-
# Use Python versions available in astral-sh/python-build-standalone release 20251031
44-
version1: "3.11.14"
45-
version2: "3.12.12"
43+
# Use Python versions available in both python.org and python-build-standalone (20240814)
44+
version1: "3.11.9"
45+
version2: "3.12.5"
4646
- os: macos-latest
4747
platform: macos
4848
ext: ""
49-
version1: "3.11.14"
50-
version2: "3.12.12"
49+
version1: "3.11.9"
50+
version2: "3.12.5"
5151
- os: windows-latest
5252
platform: windows
5353
ext: ".exe"
54-
version1: "3.11.14"
55-
version2: "3.12.12"
54+
version1: "3.11.9"
55+
version2: "3.12.5"
5656
env:
5757
# Run tests from a directory outside the repo to avoid picking up .dtvem/runtimes.json
5858
TEST_WORKSPACE: ${{ github.workspace }}/../dtvem-test-workspace

src/runtimes/python/provider.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,16 @@ func (p *Provider) getStandaloneBuildURL(version, platform, arch string) (string
260260

261261
// python-build-standalone uses a build date in the version
262262
// The project moved from indygreg to astral-sh
263-
// Using a recent build date that includes Python 3.10, 3.11, 3.12, 3.13
264-
buildDate := "20251031"
263+
// Using release 20240814 which has versions also available on python.org (Windows)
264+
buildDate := "20240814"
265265

266266
// Construct archive name
267-
// Format: cpython-3.11.0+20251031-x86_64-unknown-linux-gnu-install_only.tar.gz
267+
// Format: cpython-3.11.9+20240814-x86_64-unknown-linux-gnu-install_only.tar.gz
268268
archiveName := fmt.Sprintf("cpython-%s+%s-%s-%s-install_only.tar.gz",
269269
version, buildDate, pbsArch, pbsPlatform)
270270

271271
// Construct download URL
272-
// https://github.com/astral-sh/python-build-standalone/releases/download/20251031/cpython-...tar.gz
272+
// https://github.com/astral-sh/python-build-standalone/releases/download/20240814/cpython-...tar.gz
273273
downloadURL := fmt.Sprintf("https://github.com/astral-sh/python-build-standalone/releases/download/%s/%s",
274274
buildDate, archiveName)
275275

0 commit comments

Comments
 (0)