Add support for embedded Python on Windows (#3161)
## Summary References: - https://github.com/pypa/virtualenv/blob/cad550030ae77e181a1d7c328742a97f2880ef9b/src/virtualenv/create/via_global_ref/builtin/cpython/cpython3.py#L58-L68 - https://github.com/pypa/virtualenv/pull/2353 - https://github.com/pypa/virtualenv/issues/2368 Closes https://github.com/astral-sh/uv/issues/1656.
This commit is contained in:
@@ -814,3 +814,37 @@ jobs:
|
||||
|
||||
- name: "Validate global Python install"
|
||||
run: python3 scripts/check_system_python.py --uv ./uv
|
||||
|
||||
system-test-windows-embedded-python-310:
|
||||
needs: build-binary-windows
|
||||
name: "check system | embedded python3.10 on windows"
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
# Avoid debug build stack overflows.
|
||||
UV_STACK_SIZE: 2000000 # 2 megabyte, double the default on windows
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: "Download binary"
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: uv-windows-${{ github.sha }}
|
||||
|
||||
# Download embedded Python.
|
||||
- name: "Download embedded Python"
|
||||
run: curl -LsSf https://www.python.org/ftp/python/3.11.8/python-3.11.8-embed-amd64.zip -o python-3.11.8-embed-amd64.zip
|
||||
|
||||
- name: "Unzip embedded Python"
|
||||
run: 7z x python-3.11.8-embed-amd64.zip -oembedded-python
|
||||
|
||||
- name: "Show embedded Python contents"
|
||||
run: ls embedded-python
|
||||
|
||||
- name: "Set PATH"
|
||||
run: echo "${{ github.workspace }}\embedded-python" >> $env:GITHUB_PATH
|
||||
|
||||
- name: "Print Python path"
|
||||
run: echo $(which python)
|
||||
|
||||
- name: "Validate embedded Python install"
|
||||
run: python ./scripts/check_embedded_python.py --uv ./uv.exe
|
||||
|
||||
Reference in New Issue
Block a user