You've already forked setup-python
							
							
				mirror of
				https://github.com/actions/setup-python.git
				synced 2025-10-31 23:26:24 +07:00 
			
		
		
		
	Clarify pythonLocation behavior for PyPy and GraalPy in environment variables (#1183)
* documentation update * spaces update
This commit is contained in:
		| @ -477,16 +477,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, 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. | | ||||
| | `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 | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 aparnajyothi-y
					aparnajyothi-y