From ecddc3b614fe12114117521160a5d7005a95a559 Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Mon, 14 Jul 2025 18:34:39 +0530 Subject: [PATCH 1/4] doc update --- docs/advanced-usage.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 96524823e..5345a8d77 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -472,12 +472,16 @@ jobs: These environment variables become available after setup-python action execution: -| **Env.variable** | **Description** | -| ----------- | ----------- | -| pythonLocation |Contains the absolute path to the folder where the requested version of Python or PyPy is installed| -| Python_ROOT_DIR | https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython | -| Python2_ROOT_DIR |https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2| -| Python3_ROOT_DIR |https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3| +### Environment variables + +These environment variables become available after setup-python action execution: + +| Env. variable | Description | +|----------------------|-------------| +| `pythonLocation` | Contains the absolute path to the folder where the requested version of Python, PyPy, or GraalPy is installed.

**Executable location by implementation:**
• **CPython** – `$pythonLocation/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows)
• **PyPy** – `$pythonLocation/bin/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows)
• **GraalPy** – `$pythonLocation/bin/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows)

Note: CPython versions include a symlink or copy of the `python` executable at the root, while PyPy and GraalPy retain upstream directory layouts. | +| `Python_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython | +| `Python2_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2 | +| `Python3_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3 | ## Using `update-environment` flag From f3af55dd41a9c6b23947ad791de14b86e3385bf7 Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Tue, 15 Jul 2025 12:43:19 +0530 Subject: [PATCH 2/4] doc update --- docs/advanced-usage.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 5345a8d77..7b85d5267 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -468,10 +468,6 @@ jobs: - run: echo '${{ steps.cp313.outputs.cache-hit }}' # true if cache-hit occurred on the primary key ``` -## Environment variables - -These environment variables become available after setup-python action execution: - ### Environment variables These environment variables become available after setup-python action execution: From fdf61e943e945c2da1b1f9650da830738da2e4fe Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Tue, 15 Jul 2025 14:25:16 +0530 Subject: [PATCH 3/4] doc update --- docs/advanced-usage.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 7b85d5267..711a96606 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -474,7 +474,11 @@ These environment variables become available after setup-python action execution | Env. variable | Description | |----------------------|-------------| -| `pythonLocation` | Contains the absolute path to the folder where the requested version of Python, PyPy, or GraalPy is installed.

**Executable location by implementation:**
• **CPython** – `$pythonLocation/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows)
• **PyPy** – `$pythonLocation/bin/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows)
• **GraalPy** – `$pythonLocation/bin/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows)

Note: CPython versions include a symlink or copy of the `python` executable at the root, while PyPy and GraalPy retain upstream directory layouts. | +| `pythonLocation` | +Contains the absolute path to the folder where the requested version of Python is installed. + +- For **CPython**, the `python` executable is available at the root (e.g., `$pythonLocation/python` or `python.exe`). +- For **PyPy** and **GraalPy**, the layout follows the upstream archive structure, so the executable may be found under `bin/` or `Scripts/` depending on the platform.| | `Python_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython | | `Python2_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2 | | `Python3_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3 | From 75fa98081c1114067994be6187d64b647d0a8132 Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Tue, 15 Jul 2025 14:58:33 +0530 Subject: [PATCH 4/4] doc update --- docs/advanced-usage.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 711a96606..9bd721b18 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -474,11 +474,7 @@ These environment variables become available after setup-python action execution | Env. variable | Description | |----------------------|-------------| -| `pythonLocation` | -Contains the absolute path to the folder where the requested version of Python is installed. - -- For **CPython**, the `python` executable is available at the root (e.g., `$pythonLocation/python` or `python.exe`). -- For **PyPy** and **GraalPy**, the layout follows the upstream archive structure, so the executable may be found under `bin/` or `Scripts/` depending on the platform.| +| `pythonLocation` | Contains the absolute path to the folder where the requested version of Python is installed.

For **CPython**, the `python` executable is available at the root (e.g., `$pythonLocation/python` or `python.exe`).
For **PyPy** and **GraalPy**, the layout follows the upstream archive structure, so the executable may be found under `bin/` or `Scripts/`, depending on the platform. | | `Python_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython | | `Python2_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2 | | `Python3_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3 |