diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 96524823e..9bd721b18 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -468,16 +468,16 @@ jobs: - run: echo '${{ steps.cp313.outputs.cache-hit }}' # true if cache-hit occurred on the primary key ``` -## Environment variables +### 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 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| +| 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. | +| `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