Skip to content

Commit 65b0712

Browse files
Clarify pythonLocation behavior for PyPy and GraalPy in environment variables (actions#1183)
* documentation update * spaces update
1 parent 5b668cf commit 65b0712

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/advanced-usage.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -477,16 +477,16 @@ jobs:
477477
- run: echo '${{ steps.cp313.outputs.cache-hit }}' # true if cache-hit occurred on the primary key
478478
```
479479

480-
## Environment variables
480+
### Environment variables
481481

482482
These environment variables become available after setup-python action execution:
483483

484-
| **Env.variable** | **Description** |
485-
| ----------- | ----------- |
486-
| pythonLocation |Contains the absolute path to the folder where the requested version of Python or PyPy is installed|
487-
| Python_ROOT_DIR | https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython |
488-
| Python2_ROOT_DIR |https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2|
489-
| Python3_ROOT_DIR |https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3|
484+
| **Env.variable** | **Description**|
485+
|----------------------|-------------|
486+
| `pythonLocation` | Contains the absolute path to the folder where the requested version of Python, PyPy, or GraalPy is installed. <br><br>**Executable location by implementation:** <br>• **CPython** – `$pythonLocation/bin/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows) <br>• **PyPy** – `$pythonLocation/bin/python` (Linux/macOS), `$pythonLocation/python.exe` (Windows) <br>• **GraalPy** – `$pythonLocation/bin/python` (Linux/macOS) <br><br>Note: CPython versions include a symlink or copy of the Python executable at the root, while PyPy and GraalPy retain upstream directory layouts. |
487+
| `Python_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython |
488+
| `Python2_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2 |
489+
| `Python3_ROOT_DIR` | https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3 |
490490

491491
## Using `update-environment` flag
492492

0 commit comments

Comments
 (0)