mirror of
https://github.com/actions/setup-python.git
synced 2025-07-18 10:38:20 +02:00
doc update
This commit is contained in:
parent
532b046aaf
commit
ecddc3b614
1 changed files with 10 additions and 6 deletions
|
@ -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. <br><br>**Executable location by implementation:** <br>• **CPython** – `$pythonLocation/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), `$pythonLocation/python.exe` (Windows) <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. |
|
||||
| `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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue